Make MP_PROPERTY_GETTER / _GETSET fully declare the property
This will enable setting data attributes, namely, the section of the symbol.
This commit is contained in:
parent
5b9f0681ad
commit
78cf0a90af
@ -53,7 +53,7 @@ STATIC mp_obj_t samd_clock_get_enabled(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(samd_clock_get_enabled_obj, samd_clock_get_enabled);
|
||||
|
||||
const mp_obj_property_getter_t samd_clock_enabled_obj = MP_PROPERTY_GETTER(samd_clock_enabled_obj,
|
||||
MP_PROPERTY_GETTER(samd_clock_enabled_obj,
|
||||
(mp_obj_t)&samd_clock_get_enabled_obj);
|
||||
|
||||
//| parent: Union[Clock, None]
|
||||
@ -78,7 +78,7 @@ STATIC mp_obj_t samd_clock_get_parent(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(samd_clock_get_parent_obj, samd_clock_get_parent);
|
||||
|
||||
const mp_obj_property_getter_t samd_clock_parent_obj = MP_PROPERTY_GETTER(samd_clock_parent_obj,
|
||||
MP_PROPERTY_GETTER(samd_clock_parent_obj,
|
||||
(mp_obj_t)&samd_clock_get_parent_obj);
|
||||
|
||||
//| frequency: int
|
||||
@ -91,7 +91,7 @@ STATIC mp_obj_t samd_clock_get_frequency(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(samd_clock_get_frequency_obj, samd_clock_get_frequency);
|
||||
|
||||
const mp_obj_property_getter_t samd_clock_frequency_obj = MP_PROPERTY_GETTER(samd_clock_frequency_obj,
|
||||
MP_PROPERTY_GETTER(samd_clock_frequency_obj,
|
||||
(mp_obj_t)&samd_clock_get_frequency_obj);
|
||||
|
||||
//| calibration: int
|
||||
@ -118,7 +118,7 @@ STATIC mp_obj_t samd_clock_set_calibration(mp_obj_t self_in, mp_obj_t calibratio
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(samd_clock_set_calibration_obj, samd_clock_set_calibration);
|
||||
|
||||
const mp_obj_property_getset_t samd_clock_calibration_obj = MP_PROPERTY_GETSET(samd_clock_calibration_obj,
|
||||
MP_PROPERTY_GETSET(samd_clock_calibration_obj,
|
||||
(mp_obj_t)&samd_clock_get_calibration_obj,
|
||||
(mp_obj_t)&samd_clock_set_calibration_obj);
|
||||
|
||||
|
@ -96,7 +96,7 @@ STATIC mp_obj_t videocore_framebuffer_get_width(mp_obj_t self_in) {
|
||||
return MP_OBJ_NEW_SMALL_INT(common_hal_videocore_framebuffer_get_width(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(videocore_framebuffer_get_width_obj, videocore_framebuffer_get_width);
|
||||
const mp_obj_property_getter_t videocore_framebuffer_width_obj = MP_PROPERTY_GETTER(videocore_framebuffer_width_obj,
|
||||
MP_PROPERTY_GETTER(videocore_framebuffer_width_obj,
|
||||
(mp_obj_t)&videocore_framebuffer_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -109,7 +109,7 @@ STATIC mp_obj_t videocore_framebuffer_get_height(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(videocore_framebuffer_get_height_obj, videocore_framebuffer_get_height);
|
||||
|
||||
const mp_obj_property_getter_t videocore_framebuffer_height_obj = MP_PROPERTY_GETTER(videocore_framebuffer_height_obj,
|
||||
MP_PROPERTY_GETTER(videocore_framebuffer_height_obj,
|
||||
(mp_obj_t)&videocore_framebuffer_get_height_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t videocore_framebuffer_locals_dict_table[] = {
|
||||
|
@ -729,7 +729,7 @@ STATIC mp_obj_t rp2pio_statemachine_obj_set_frequency(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(rp2pio_statemachine_set_frequency_obj, rp2pio_statemachine_obj_set_frequency);
|
||||
|
||||
const mp_obj_property_getset_t rp2pio_statemachine_frequency_obj = MP_PROPERTY_GETSET(rp2pio_statemachine_frequency_obj,
|
||||
MP_PROPERTY_GETSET(rp2pio_statemachine_frequency_obj,
|
||||
(mp_obj_t)&rp2pio_statemachine_get_frequency_obj,
|
||||
(mp_obj_t)&rp2pio_statemachine_set_frequency_obj);
|
||||
|
||||
@ -745,7 +745,7 @@ STATIC mp_obj_t rp2pio_statemachine_obj_get_rxstall(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(rp2pio_statemachine_get_rxstall_obj, rp2pio_statemachine_obj_get_rxstall);
|
||||
|
||||
const mp_obj_property_getter_t rp2pio_statemachine_rxstall_obj = MP_PROPERTY_GETTER(rp2pio_statemachine_rxstall_obj,
|
||||
MP_PROPERTY_GETTER(rp2pio_statemachine_rxstall_obj,
|
||||
(mp_obj_t)&rp2pio_statemachine_get_rxstall_obj);
|
||||
|
||||
//| in_waiting: int
|
||||
@ -759,7 +759,7 @@ STATIC mp_obj_t rp2pio_statemachine_obj_get_in_waiting(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(rp2pio_statemachine_get_in_waiting_obj, rp2pio_statemachine_obj_get_in_waiting);
|
||||
|
||||
const mp_obj_property_getter_t rp2pio_statemachine_in_waiting_obj = MP_PROPERTY_GETTER(rp2pio_statemachine_in_waiting_obj,
|
||||
MP_PROPERTY_GETTER(rp2pio_statemachine_in_waiting_obj,
|
||||
(mp_obj_t)&rp2pio_statemachine_get_in_waiting_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t rp2pio_statemachine_locals_dict_table[] = {
|
||||
|
4
py/obj.h
4
py/obj.h
@ -356,7 +356,7 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
|
||||
|
||||
#define MP_DEFINE_CONST_PROP_GET(obj_name, fun_name) \
|
||||
const mp_obj_fun_builtin_fixed_t fun_name##_obj = {{&mp_type_fun_builtin_1}, .fun._1 = fun_name}; \
|
||||
const mp_obj_property_getter obj_name = MP_PROPERTY_GETTER(obj_name, (mp_obj_t)&fun_name##_obj);
|
||||
MP_PROPERTY_GETTER(obj_name, (mp_obj_t)&fun_name##_obj);
|
||||
|
||||
// These macros are used to define constant or mutable map/dict objects
|
||||
// You can put "static" in front of the definition to make it local
|
||||
@ -1107,7 +1107,7 @@ typedef struct _mp_rom_obj_static_class_method_t {
|
||||
} mp_rom_obj_static_class_method_t;
|
||||
|
||||
// property
|
||||
const mp_obj_t *mp_obj_property_get(mp_obj_t self_in);
|
||||
const mp_obj_t *mp_obj_property_get(mp_obj_t self_in, size_t *n_proxy);
|
||||
|
||||
// sequence helpers
|
||||
|
||||
|
@ -38,8 +38,8 @@ typedef struct _mp_obj_property_t {
|
||||
typedef struct _mp_obj_property_t mp_obj_property_getter_t;
|
||||
typedef struct _mp_obj_property_t mp_obj_property_getset_t;
|
||||
|
||||
#define MP_PROPERTY_GETTER(P, G) {.base.type = &mp_type_property, .proxy = {G, MP_ROM_NONE, MP_ROM_NONE}}
|
||||
#define MP_PROPERTY_GETSET(P, G, S) {.base.type = &mp_type_property, .proxy = {G, S, MP_ROM_NONE}}
|
||||
#define MP_PROPERTY_GETTER(P, G) const mp_obj_property_t P = {.base.type = &mp_type_property, .proxy = {G, MP_ROM_NONE, MP_ROM_NONE}}
|
||||
#define MP_PROPERTY_GETSET(P, G, S) const mp_obj_property_t P = {.base.type = &mp_type_property, .proxy = {G, S, MP_ROM_NONE}}
|
||||
|
||||
#endif // MICROPY_PY_BUILTINS_PROPERTY
|
||||
|
||||
|
@ -128,7 +128,7 @@ static mp_obj_t bleio_adapter_set_enabled(mp_obj_t self, mp_obj_t value) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(bleio_adapter_set_enabled_obj, bleio_adapter_set_enabled);
|
||||
|
||||
const mp_obj_property_getset_t bleio_adapter_enabled_obj = MP_PROPERTY_GETSET(bleio_adapter_enabled_obj,
|
||||
MP_PROPERTY_GETSET(bleio_adapter_enabled_obj,
|
||||
(mp_obj_t)&bleio_adapter_get_enabled_obj,
|
||||
(mp_obj_t)&bleio_adapter_set_enabled_obj);
|
||||
|
||||
@ -149,7 +149,7 @@ STATIC mp_obj_t bleio_adapter_set_address(mp_obj_t self, mp_obj_t new_address) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(bleio_adapter_set_address_obj, bleio_adapter_set_address);
|
||||
|
||||
const mp_obj_property_getset_t bleio_adapter_address_obj = MP_PROPERTY_GETSET(bleio_adapter_address_obj,
|
||||
MP_PROPERTY_GETSET(bleio_adapter_address_obj,
|
||||
(mp_obj_t)&bleio_adapter_get_address_obj,
|
||||
(mp_obj_t)&bleio_adapter_set_address_obj);
|
||||
|
||||
@ -170,7 +170,7 @@ STATIC mp_obj_t bleio_adapter_set_name(mp_obj_t self, mp_obj_t new_name) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(bleio_adapter_set_name_obj, bleio_adapter_set_name);
|
||||
|
||||
const mp_obj_property_getset_t bleio_adapter_name_obj = MP_PROPERTY_GETSET(bleio_adapter_name_obj,
|
||||
MP_PROPERTY_GETSET(bleio_adapter_name_obj,
|
||||
(mp_obj_t)&bleio_adapter_get_name_obj,
|
||||
(mp_obj_t)&bleio_adapter_set_name_obj);
|
||||
|
||||
@ -371,7 +371,7 @@ STATIC mp_obj_t bleio_adapter_get_advertising(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_adapter_get_advertising_obj, bleio_adapter_get_advertising);
|
||||
|
||||
const mp_obj_property_getter_t bleio_adapter_advertising_obj = MP_PROPERTY_GETTER(bleio_adapter_advertising_obj,
|
||||
MP_PROPERTY_GETTER(bleio_adapter_advertising_obj,
|
||||
(mp_obj_t)&bleio_adapter_get_advertising_obj);
|
||||
|
||||
//| connected: bool
|
||||
@ -384,7 +384,7 @@ STATIC mp_obj_t bleio_adapter_get_connected(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_adapter_get_connected_obj, bleio_adapter_get_connected);
|
||||
|
||||
const mp_obj_property_getter_t bleio_adapter_connected_obj = MP_PROPERTY_GETTER(bleio_adapter_connected_obj,
|
||||
MP_PROPERTY_GETTER(bleio_adapter_connected_obj,
|
||||
(mp_obj_t)&bleio_adapter_get_connected_obj);
|
||||
|
||||
//| connections: Tuple[Connection]
|
||||
@ -396,7 +396,7 @@ STATIC mp_obj_t bleio_adapter_get_connections(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_adapter_get_connections_obj, bleio_adapter_get_connections);
|
||||
|
||||
const mp_obj_property_getter_t bleio_adapter_connections_obj = MP_PROPERTY_GETTER(bleio_adapter_connections_obj,
|
||||
MP_PROPERTY_GETTER(bleio_adapter_connections_obj,
|
||||
(mp_obj_t)&bleio_adapter_get_connections_obj);
|
||||
|
||||
//| def connect(self, address: Address, *, timeout: float) -> Connection:
|
||||
|
@ -101,7 +101,7 @@ STATIC mp_obj_t bleio_address_get_address_bytes(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_address_get_address_bytes_obj, bleio_address_get_address_bytes);
|
||||
|
||||
const mp_obj_property_getter_t bleio_address_address_bytes_obj = MP_PROPERTY_GETTER(bleio_address_address_bytes_obj,
|
||||
MP_PROPERTY_GETTER(bleio_address_address_bytes_obj,
|
||||
(mp_obj_t)&bleio_address_get_address_bytes_obj);
|
||||
|
||||
//| type: int
|
||||
@ -117,7 +117,7 @@ STATIC mp_obj_t bleio_address_get_type(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_address_get_type_obj, bleio_address_get_type);
|
||||
|
||||
const mp_obj_property_getter_t bleio_address_type_obj = MP_PROPERTY_GETTER(bleio_address_type_obj,
|
||||
MP_PROPERTY_GETTER(bleio_address_type_obj,
|
||||
(mp_obj_t)&bleio_address_get_type_obj);
|
||||
|
||||
//| def __eq__(self, other: object) -> bool:
|
||||
|
@ -167,7 +167,7 @@ STATIC mp_obj_t bleio_characteristic_get_properties(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_characteristic_get_properties_obj, bleio_characteristic_get_properties);
|
||||
|
||||
const mp_obj_property_getter_t bleio_characteristic_properties_obj = MP_PROPERTY_GETTER(bleio_characteristic_properties_obj,
|
||||
MP_PROPERTY_GETTER(bleio_characteristic_properties_obj,
|
||||
(mp_obj_t)&bleio_characteristic_get_properties_obj);
|
||||
|
||||
//| uuid: Optional[UUID]
|
||||
@ -183,7 +183,7 @@ STATIC mp_obj_t bleio_characteristic_get_uuid(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_characteristic_get_uuid_obj, bleio_characteristic_get_uuid);
|
||||
|
||||
const mp_obj_property_getter_t bleio_characteristic_uuid_obj = MP_PROPERTY_GETTER(bleio_characteristic_uuid_obj,
|
||||
MP_PROPERTY_GETTER(bleio_characteristic_uuid_obj,
|
||||
(mp_obj_t)&bleio_characteristic_get_uuid_obj);
|
||||
|
||||
//| value: bytearray
|
||||
@ -210,7 +210,7 @@ STATIC mp_obj_t bleio_characteristic_set_value(mp_obj_t self_in, mp_obj_t value_
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(bleio_characteristic_set_value_obj, bleio_characteristic_set_value);
|
||||
|
||||
const mp_obj_property_getset_t bleio_characteristic_value_obj = MP_PROPERTY_GETSET(bleio_characteristic_value_obj,
|
||||
MP_PROPERTY_GETSET(bleio_characteristic_value_obj,
|
||||
(mp_obj_t)&bleio_characteristic_get_value_obj,
|
||||
(mp_obj_t)&bleio_characteristic_set_value_obj);
|
||||
|
||||
@ -224,7 +224,7 @@ STATIC mp_obj_t bleio_characteristic_get_max_length(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_characteristic_get_max_length_obj, bleio_characteristic_get_max_length);
|
||||
|
||||
const mp_obj_property_getter_t bleio_characteristic_max_length_obj = MP_PROPERTY_GETTER(bleio_characteristic_max_length_obj,
|
||||
MP_PROPERTY_GETTER(bleio_characteristic_max_length_obj,
|
||||
(mp_obj_t)&bleio_characteristic_get_max_length_obj);
|
||||
|
||||
//| descriptors: Descriptor
|
||||
@ -238,7 +238,7 @@ STATIC mp_obj_t bleio_characteristic_get_descriptors(mp_obj_t self_in) {
|
||||
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_characteristic_get_descriptors_obj, bleio_characteristic_get_descriptors);
|
||||
|
||||
const mp_obj_property_getter_t bleio_characteristic_descriptors_obj = MP_PROPERTY_GETTER(bleio_characteristic_descriptors_obj,
|
||||
MP_PROPERTY_GETTER(bleio_characteristic_descriptors_obj,
|
||||
(mp_obj_t)&bleio_characteristic_get_descriptors_obj);
|
||||
|
||||
//| service: Service
|
||||
@ -251,7 +251,7 @@ STATIC mp_obj_t bleio_characteristic_get_service(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_characteristic_get_service_obj, bleio_characteristic_get_service);
|
||||
|
||||
const mp_obj_property_getter_t bleio_characteristic_service_obj = MP_PROPERTY_GETTER(bleio_characteristic_service_obj,
|
||||
MP_PROPERTY_GETTER(bleio_characteristic_service_obj,
|
||||
(mp_obj_t)&bleio_characteristic_get_service_obj);
|
||||
|
||||
//| def set_cccd(self, *, notify: bool = False, indicate: bool = False) -> None:
|
||||
|
@ -173,7 +173,7 @@ STATIC mp_obj_t bleio_characteristic_buffer_obj_get_in_waiting(mp_obj_t self_in)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_characteristic_buffer_get_in_waiting_obj, bleio_characteristic_buffer_obj_get_in_waiting);
|
||||
|
||||
const mp_obj_property_getter_t bleio_characteristic_buffer_in_waiting_obj = MP_PROPERTY_GETTER(bleio_characteristic_buffer_in_waiting_obj,
|
||||
MP_PROPERTY_GETTER(bleio_characteristic_buffer_in_waiting_obj,
|
||||
(mp_obj_t)&bleio_characteristic_buffer_get_in_waiting_obj);
|
||||
|
||||
//| def reset_input_buffer(self) -> None:
|
||||
|
@ -161,7 +161,7 @@ STATIC mp_obj_t bleio_connection_get_connected(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_connection_get_connected_obj, bleio_connection_get_connected);
|
||||
|
||||
const mp_obj_property_getter_t bleio_connection_connected_obj = MP_PROPERTY_GETTER(bleio_connection_connected_obj,
|
||||
MP_PROPERTY_GETTER(bleio_connection_connected_obj,
|
||||
(mp_obj_t)&bleio_connection_get_connected_obj);
|
||||
|
||||
|
||||
@ -175,7 +175,7 @@ STATIC mp_obj_t bleio_connection_get_paired(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_connection_get_paired_obj, bleio_connection_get_paired);
|
||||
|
||||
const mp_obj_property_getter_t bleio_connection_paired_obj = MP_PROPERTY_GETTER(bleio_connection_paired_obj,
|
||||
MP_PROPERTY_GETTER(bleio_connection_paired_obj,
|
||||
(mp_obj_t)&bleio_connection_get_paired_obj);
|
||||
|
||||
|
||||
@ -227,11 +227,11 @@ STATIC mp_obj_t bleio_connection_set_connection_interval(mp_obj_t self_in, mp_ob
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(bleio_connection_set_connection_interval_obj, bleio_connection_set_connection_interval);
|
||||
|
||||
const mp_obj_property_getset_t bleio_connection_connection_interval_obj = MP_PROPERTY_GETSET(bleio_connection_connection_interval_obj,
|
||||
MP_PROPERTY_GETSET(bleio_connection_connection_interval_obj,
|
||||
(mp_obj_t)&bleio_connection_get_connection_interval_obj,
|
||||
(mp_obj_t)&bleio_connection_set_connection_interval_obj);
|
||||
|
||||
const mp_obj_property_getter_t bleio_connection_max_packet_length_obj = MP_PROPERTY_GETTER(bleio_connection_max_packet_length_obj,
|
||||
MP_PROPERTY_GETTER(bleio_connection_max_packet_length_obj,
|
||||
(mp_obj_t)&bleio_connection_get_max_packet_length_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t bleio_connection_locals_dict_table[] = {
|
||||
|
@ -144,7 +144,7 @@ STATIC mp_obj_t bleio_descriptor_get_uuid(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_descriptor_get_uuid_obj, bleio_descriptor_get_uuid);
|
||||
|
||||
const mp_obj_property_getter_t bleio_descriptor_uuid_obj = MP_PROPERTY_GETTER(bleio_descriptor_uuid_obj,
|
||||
MP_PROPERTY_GETTER(bleio_descriptor_uuid_obj,
|
||||
(mp_obj_t)&bleio_descriptor_get_uuid_obj);
|
||||
|
||||
//| characteristic: Characteristic
|
||||
@ -157,7 +157,7 @@ STATIC mp_obj_t bleio_descriptor_get_characteristic(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_descriptor_get_characteristic_obj, bleio_descriptor_get_characteristic);
|
||||
|
||||
const mp_obj_property_getter_t bleio_descriptor_characteristic_obj = MP_PROPERTY_GETTER(bleio_descriptor_characteristic_obj,
|
||||
MP_PROPERTY_GETTER(bleio_descriptor_characteristic_obj,
|
||||
(mp_obj_t)&bleio_descriptor_get_characteristic_obj);
|
||||
|
||||
//| value: bytearray
|
||||
@ -184,7 +184,7 @@ STATIC mp_obj_t bleio_descriptor_set_value(mp_obj_t self_in, mp_obj_t value_in)
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(bleio_descriptor_set_value_obj, bleio_descriptor_set_value);
|
||||
|
||||
const mp_obj_property_getset_t bleio_descriptor_value_obj = MP_PROPERTY_GETSET(bleio_descriptor_value_obj,
|
||||
MP_PROPERTY_GETSET(bleio_descriptor_value_obj,
|
||||
(mp_obj_t)&bleio_descriptor_get_value_obj,
|
||||
(mp_obj_t)&bleio_descriptor_set_value_obj);
|
||||
|
||||
|
@ -197,7 +197,7 @@ STATIC mp_obj_t bleio_packet_buffer_get_incoming_packet_length(mp_obj_t self_in)
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_packet_buffer_get_incoming_packet_length_obj, bleio_packet_buffer_get_incoming_packet_length);
|
||||
|
||||
const mp_obj_property_getter_t bleio_packet_buffer_incoming_packet_length_obj = MP_PROPERTY_GETTER(bleio_packet_buffer_incoming_packet_length_obj,
|
||||
MP_PROPERTY_GETTER(bleio_packet_buffer_incoming_packet_length_obj,
|
||||
(mp_obj_t)&bleio_packet_buffer_get_incoming_packet_length_obj);
|
||||
|
||||
//| outgoing_packet_length: int
|
||||
@ -214,7 +214,7 @@ STATIC mp_obj_t bleio_packet_buffer_get_outgoing_packet_length(mp_obj_t self_in)
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_packet_buffer_get_outgoing_packet_length_obj, bleio_packet_buffer_get_outgoing_packet_length);
|
||||
|
||||
const mp_obj_property_getter_t bleio_packet_buffer_outgoing_packet_length_obj = MP_PROPERTY_GETTER(bleio_packet_buffer_outgoing_packet_length_obj,
|
||||
MP_PROPERTY_GETTER(bleio_packet_buffer_outgoing_packet_length_obj,
|
||||
(mp_obj_t)&bleio_packet_buffer_get_outgoing_packet_length_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t bleio_packet_buffer_locals_dict_table[] = {
|
||||
|
@ -83,7 +83,7 @@ STATIC mp_obj_t bleio_scanentry_get_address(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_scanentry_get_address_obj, bleio_scanentry_get_address);
|
||||
|
||||
const mp_obj_property_getter_t bleio_scanentry_address_obj = MP_PROPERTY_GETTER(bleio_scanentry_address_obj,
|
||||
MP_PROPERTY_GETTER(bleio_scanentry_address_obj,
|
||||
(mp_obj_t)&bleio_scanentry_get_address_obj);
|
||||
|
||||
//| advertisement_bytes: bytes
|
||||
@ -95,7 +95,7 @@ STATIC mp_obj_t scanentry_get_advertisement_bytes(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_scanentry_get_advertisement_bytes_obj, scanentry_get_advertisement_bytes);
|
||||
|
||||
const mp_obj_property_getter_t bleio_scanentry_advertisement_bytes_obj = MP_PROPERTY_GETTER(bleio_scanentry_advertisement_bytes_obj,
|
||||
MP_PROPERTY_GETTER(bleio_scanentry_advertisement_bytes_obj,
|
||||
(mp_obj_t)&bleio_scanentry_get_advertisement_bytes_obj);
|
||||
|
||||
//| rssi: int
|
||||
@ -107,7 +107,7 @@ STATIC mp_obj_t scanentry_get_rssi(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_scanentry_get_rssi_obj, scanentry_get_rssi);
|
||||
|
||||
const mp_obj_property_getter_t bleio_scanentry_rssi_obj = MP_PROPERTY_GETTER(bleio_scanentry_rssi_obj,
|
||||
MP_PROPERTY_GETTER(bleio_scanentry_rssi_obj,
|
||||
(mp_obj_t)&bleio_scanentry_get_rssi_obj);
|
||||
|
||||
//| connectable: bool
|
||||
@ -119,7 +119,7 @@ STATIC mp_obj_t scanentry_get_connectable(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_scanentry_get_connectable_obj, scanentry_get_connectable);
|
||||
|
||||
const mp_obj_property_getter_t bleio_scanentry_connectable_obj = MP_PROPERTY_GETTER(bleio_scanentry_connectable_obj,
|
||||
MP_PROPERTY_GETTER(bleio_scanentry_connectable_obj,
|
||||
(mp_obj_t)&bleio_scanentry_get_connectable_obj);
|
||||
|
||||
//| scan_response: bool
|
||||
@ -131,7 +131,7 @@ STATIC mp_obj_t scanentry_get_scan_response(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_scanentry_get_scan_response_obj, scanentry_get_scan_response);
|
||||
|
||||
const mp_obj_property_getter_t bleio_scanentry_scan_response_obj = MP_PROPERTY_GETTER(bleio_scanentry_scan_response_obj,
|
||||
MP_PROPERTY_GETTER(bleio_scanentry_scan_response_obj,
|
||||
(mp_obj_t)&bleio_scanentry_get_scan_response_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t bleio_scanentry_locals_dict_table[] = {
|
||||
|
@ -80,7 +80,7 @@ STATIC mp_obj_t bleio_service_get_characteristics(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_service_get_characteristics_obj, bleio_service_get_characteristics);
|
||||
|
||||
const mp_obj_property_getter_t bleio_service_characteristics_obj = MP_PROPERTY_GETTER(bleio_service_characteristics_obj,
|
||||
MP_PROPERTY_GETTER(bleio_service_characteristics_obj,
|
||||
(mp_obj_t)&bleio_service_get_characteristics_obj);
|
||||
|
||||
//| remote: bool
|
||||
@ -93,7 +93,7 @@ STATIC mp_obj_t bleio_service_get_remote(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_service_get_remote_obj, bleio_service_get_remote);
|
||||
|
||||
const mp_obj_property_getter_t bleio_service_remote_obj = MP_PROPERTY_GETTER(bleio_service_remote_obj,
|
||||
MP_PROPERTY_GETTER(bleio_service_remote_obj,
|
||||
(mp_obj_t)&bleio_service_get_remote_obj);
|
||||
|
||||
//| secondary: bool
|
||||
@ -106,7 +106,7 @@ STATIC mp_obj_t bleio_service_get_secondary(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_service_get_secondary_obj, bleio_service_get_secondary);
|
||||
|
||||
const mp_obj_property_getter_t bleio_service_secondary_obj = MP_PROPERTY_GETTER(bleio_service_secondary_obj,
|
||||
MP_PROPERTY_GETTER(bleio_service_secondary_obj,
|
||||
(mp_obj_t)&bleio_service_get_secondary_obj);
|
||||
|
||||
//| uuid: Optional[UUID]
|
||||
@ -122,7 +122,7 @@ STATIC mp_obj_t bleio_service_get_uuid(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(bleio_service_get_uuid_obj, bleio_service_get_uuid);
|
||||
|
||||
const mp_obj_property_getter_t bleio_service_uuid_obj = MP_PROPERTY_GETTER(bleio_service_uuid_obj,
|
||||
MP_PROPERTY_GETTER(bleio_service_uuid_obj,
|
||||
(mp_obj_t)&bleio_service_get_uuid_obj);
|
||||
|
||||
|
||||
|
@ -132,7 +132,7 @@ STATIC mp_obj_t bleio_uuid_get_uuid16(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_uuid_get_uuid16_obj, bleio_uuid_get_uuid16);
|
||||
|
||||
const mp_obj_property_getter_t bleio_uuid_uuid16_obj = MP_PROPERTY_GETTER(bleio_uuid_uuid16_obj,
|
||||
MP_PROPERTY_GETTER(bleio_uuid_uuid16_obj,
|
||||
(mp_obj_t)&bleio_uuid_get_uuid16_obj);
|
||||
|
||||
//| uuid128: bytes
|
||||
@ -154,7 +154,7 @@ STATIC mp_obj_t bleio_uuid_get_uuid128(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_uuid_get_uuid128_obj, bleio_uuid_get_uuid128);
|
||||
|
||||
const mp_obj_property_getter_t bleio_uuid_uuid128_obj = MP_PROPERTY_GETTER(bleio_uuid_uuid128_obj,
|
||||
MP_PROPERTY_GETTER(bleio_uuid_uuid128_obj,
|
||||
(mp_obj_t)&bleio_uuid_get_uuid128_obj);
|
||||
|
||||
//| size: int
|
||||
@ -170,7 +170,7 @@ STATIC mp_obj_t bleio_uuid_get_size(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(bleio_uuid_get_size_obj, bleio_uuid_get_size);
|
||||
|
||||
const mp_obj_property_getter_t bleio_uuid_size_obj = MP_PROPERTY_GETTER(bleio_uuid_size_obj,
|
||||
MP_PROPERTY_GETTER(bleio_uuid_size_obj,
|
||||
(mp_obj_t)&bleio_uuid_get_size_obj);
|
||||
|
||||
|
||||
|
@ -161,7 +161,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_obj_get_bpp(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(pixelbuf_pixelbuf_get_bpp_obj, pixelbuf_pixelbuf_obj_get_bpp);
|
||||
|
||||
const mp_obj_property_getter_t pixelbuf_pixelbuf_bpp_obj = MP_PROPERTY_GETTER(pixelbuf_pixelbuf_bpp_obj,
|
||||
MP_PROPERTY_GETTER(pixelbuf_pixelbuf_bpp_obj,
|
||||
(mp_obj_t)&pixelbuf_pixelbuf_get_bpp_obj);
|
||||
|
||||
|
||||
@ -189,7 +189,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_obj_set_brightness(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_set_brightness_obj, pixelbuf_pixelbuf_obj_set_brightness);
|
||||
|
||||
const mp_obj_property_getset_t pixelbuf_pixelbuf_brightness_obj = MP_PROPERTY_GETSET(pixelbuf_pixelbuf_brightness_obj,
|
||||
MP_PROPERTY_GETSET(pixelbuf_pixelbuf_brightness_obj,
|
||||
(mp_obj_t)&pixelbuf_pixelbuf_get_brightness_obj,
|
||||
(mp_obj_t)&pixelbuf_pixelbuf_set_brightness_obj);
|
||||
|
||||
@ -208,7 +208,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_obj_set_auto_write(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_set_auto_write_obj, pixelbuf_pixelbuf_obj_set_auto_write);
|
||||
|
||||
const mp_obj_property_getset_t pixelbuf_pixelbuf_auto_write_obj = MP_PROPERTY_GETSET(pixelbuf_pixelbuf_auto_write_obj,
|
||||
MP_PROPERTY_GETSET(pixelbuf_pixelbuf_auto_write_obj,
|
||||
(mp_obj_t)&pixelbuf_pixelbuf_get_auto_write_obj,
|
||||
(mp_obj_t)&pixelbuf_pixelbuf_set_auto_write_obj);
|
||||
|
||||
@ -220,7 +220,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_obj_get_byteorder(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(pixelbuf_pixelbuf_get_byteorder_str, pixelbuf_pixelbuf_obj_get_byteorder);
|
||||
|
||||
const mp_obj_property_getter_t pixelbuf_pixelbuf_byteorder_str = MP_PROPERTY_GETTER(pixelbuf_pixelbuf_byteorder_str,
|
||||
MP_PROPERTY_GETTER(pixelbuf_pixelbuf_byteorder_str,
|
||||
(mp_obj_t)&pixelbuf_pixelbuf_get_byteorder_str);
|
||||
|
||||
STATIC mp_obj_t pixelbuf_pixelbuf_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
|
||||
|
@ -246,7 +246,7 @@ STATIC mp_obj_t aesio_aes_set_mode(mp_obj_t aesio_obj, mp_obj_t mode_obj) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(aesio_aes_set_mode_obj, aesio_aes_set_mode);
|
||||
|
||||
const mp_obj_property_getset_t aesio_aes_mode_obj = MP_PROPERTY_GETSET(aesio_aes_mode_obj,
|
||||
MP_PROPERTY_GETSET(aesio_aes_mode_obj,
|
||||
(mp_obj_t)&aesio_aes_get_mode_obj,
|
||||
(mp_obj_t)&aesio_aes_set_mode_obj);
|
||||
|
||||
|
@ -97,7 +97,7 @@ STATIC mp_obj_t alarm_pin_pinalarm_obj_get_pin(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(alarm_pin_pinalarm_get_pin_obj, alarm_pin_pinalarm_obj_get_pin);
|
||||
|
||||
const mp_obj_property_getter_t alarm_pin_pinalarm_pin_obj = MP_PROPERTY_GETTER(alarm_pin_pinalarm_pin_obj,
|
||||
MP_PROPERTY_GETTER(alarm_pin_pinalarm_pin_obj,
|
||||
(mp_obj_t)&alarm_pin_pinalarm_get_pin_obj);
|
||||
|
||||
//| value: bool
|
||||
@ -109,7 +109,7 @@ STATIC mp_obj_t alarm_pin_pinalarm_obj_get_value(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(alarm_pin_pinalarm_get_value_obj, alarm_pin_pinalarm_obj_get_value);
|
||||
|
||||
const mp_obj_property_getter_t alarm_pin_pinalarm_value_obj = MP_PROPERTY_GETTER(alarm_pin_pinalarm_value_obj,
|
||||
MP_PROPERTY_GETTER(alarm_pin_pinalarm_value_obj,
|
||||
(mp_obj_t)&alarm_pin_pinalarm_get_value_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t alarm_pin_pinalarm_locals_dict_table[] = {
|
||||
|
@ -123,7 +123,7 @@ STATIC mp_obj_t alarm_time_timealarm_obj_get_monotonic_time(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(alarm_time_timealarm_get_monotonic_time_obj, alarm_time_timealarm_obj_get_monotonic_time);
|
||||
|
||||
const mp_obj_property_getter_t alarm_time_timealarm_monotonic_time_obj = MP_PROPERTY_GETTER(alarm_time_timealarm_monotonic_time_obj,
|
||||
MP_PROPERTY_GETTER(alarm_time_timealarm_monotonic_time_obj,
|
||||
(mp_obj_t)&alarm_time_timealarm_get_monotonic_time_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t alarm_time_timealarm_locals_dict_table[] = {
|
||||
|
@ -71,7 +71,7 @@ STATIC mp_obj_t alarm_touch_touchalarm_obj_get_pin(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(alarm_touch_touchalarm_get_pin_obj, alarm_touch_touchalarm_obj_get_pin);
|
||||
|
||||
const mp_obj_property_getter_t alarm_touch_touchalarm_pin_obj = MP_PROPERTY_GETTER(alarm_touch_touchalarm_pin_obj,
|
||||
MP_PROPERTY_GETTER(alarm_touch_touchalarm_pin_obj,
|
||||
(mp_obj_t)&alarm_touch_touchalarm_get_pin_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t alarm_touch_touchalarm_locals_dict_table[] = {
|
||||
|
@ -117,7 +117,7 @@ STATIC mp_obj_t analogio_analogin_obj_get_value(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(analogio_analogin_get_value_obj, analogio_analogin_obj_get_value);
|
||||
|
||||
const mp_obj_property_getter_t analogio_analogin_value_obj = MP_PROPERTY_GETTER(analogio_analogin_value_obj,
|
||||
MP_PROPERTY_GETTER(analogio_analogin_value_obj,
|
||||
(mp_obj_t)&analogio_analogin_get_value_obj);
|
||||
|
||||
//| reference_voltage: float
|
||||
@ -139,7 +139,7 @@ STATIC mp_obj_t analogio_analogin_obj_get_reference_voltage(mp_obj_t self_in) {
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(analogio_analogin_get_reference_voltage_obj,
|
||||
analogio_analogin_obj_get_reference_voltage);
|
||||
|
||||
const mp_obj_property_getter_t analogio_analogin_reference_voltage_obj = MP_PROPERTY_GETTER(analogio_analogin_reference_voltage_obj,
|
||||
MP_PROPERTY_GETTER(analogio_analogin_reference_voltage_obj,
|
||||
(mp_obj_t)&analogio_analogin_get_reference_voltage_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t analogio_analogin_locals_dict_table[] = {
|
||||
|
@ -117,7 +117,7 @@ STATIC mp_obj_t analogio_analogout_obj_set_value(mp_obj_t self_in, mp_obj_t valu
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(analogio_analogout_set_value_obj, analogio_analogout_obj_set_value);
|
||||
|
||||
const mp_obj_property_getset_t analogio_analogout_value_obj = MP_PROPERTY_GETSET(analogio_analogout_value_obj,
|
||||
MP_PROPERTY_GETSET(analogio_analogout_value_obj,
|
||||
MP_ROM_NONE,
|
||||
(mp_obj_t)&analogio_analogout_set_value_obj);
|
||||
|
||||
|
@ -203,7 +203,7 @@ STATIC mp_obj_t audiobusio_i2sout_obj_get_playing(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiobusio_i2sout_get_playing_obj, audiobusio_i2sout_obj_get_playing);
|
||||
|
||||
const mp_obj_property_getter_t audiobusio_i2sout_playing_obj = MP_PROPERTY_GETTER(audiobusio_i2sout_playing_obj,
|
||||
MP_PROPERTY_GETTER(audiobusio_i2sout_playing_obj,
|
||||
(mp_obj_t)&audiobusio_i2sout_get_playing_obj);
|
||||
|
||||
//| def pause(self) -> None:
|
||||
@ -248,7 +248,7 @@ STATIC mp_obj_t audiobusio_i2sout_obj_get_paused(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiobusio_i2sout_get_paused_obj, audiobusio_i2sout_obj_get_paused);
|
||||
|
||||
const mp_obj_property_getter_t audiobusio_i2sout_paused_obj = MP_PROPERTY_GETTER(audiobusio_i2sout_paused_obj,
|
||||
MP_PROPERTY_GETTER(audiobusio_i2sout_paused_obj,
|
||||
(mp_obj_t)&audiobusio_i2sout_get_paused_obj);
|
||||
#endif // CIRCUITPY_AUDIOBUSIO_I2SOUT
|
||||
|
||||
|
@ -226,7 +226,7 @@ STATIC mp_obj_t audiobusio_pdmin_obj_get_sample_rate(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiobusio_pdmin_get_sample_rate_obj, audiobusio_pdmin_obj_get_sample_rate);
|
||||
|
||||
const mp_obj_property_getter_t audiobusio_pdmin_sample_rate_obj = MP_PROPERTY_GETTER(audiobusio_pdmin_sample_rate_obj,
|
||||
MP_PROPERTY_GETTER(audiobusio_pdmin_sample_rate_obj,
|
||||
(mp_obj_t)&audiobusio_pdmin_get_sample_rate_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t audiobusio_pdmin_locals_dict_table[] = {
|
||||
|
@ -153,7 +153,7 @@ STATIC mp_obj_t audioio_rawsample_obj_set_sample_rate(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(audioio_rawsample_set_sample_rate_obj, audioio_rawsample_obj_set_sample_rate);
|
||||
|
||||
const mp_obj_property_getset_t audioio_rawsample_sample_rate_obj = MP_PROPERTY_GETSET(audioio_rawsample_sample_rate_obj,
|
||||
MP_PROPERTY_GETSET(audioio_rawsample_sample_rate_obj,
|
||||
(mp_obj_t)&audioio_rawsample_get_sample_rate_obj,
|
||||
(mp_obj_t)&audioio_rawsample_set_sample_rate_obj);
|
||||
|
||||
|
@ -148,7 +148,7 @@ STATIC mp_obj_t audioio_wavefile_obj_set_sample_rate(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(audioio_wavefile_set_sample_rate_obj, audioio_wavefile_obj_set_sample_rate);
|
||||
|
||||
const mp_obj_property_getset_t audioio_wavefile_sample_rate_obj = MP_PROPERTY_GETSET(audioio_wavefile_sample_rate_obj,
|
||||
MP_PROPERTY_GETSET(audioio_wavefile_sample_rate_obj,
|
||||
(mp_obj_t)&audioio_wavefile_get_sample_rate_obj,
|
||||
(mp_obj_t)&audioio_wavefile_set_sample_rate_obj);
|
||||
|
||||
@ -162,7 +162,7 @@ STATIC mp_obj_t audioio_wavefile_obj_get_bits_per_sample(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audioio_wavefile_get_bits_per_sample_obj, audioio_wavefile_obj_get_bits_per_sample);
|
||||
|
||||
const mp_obj_property_getter_t audioio_wavefile_bits_per_sample_obj = MP_PROPERTY_GETTER(audioio_wavefile_bits_per_sample_obj,
|
||||
MP_PROPERTY_GETTER(audioio_wavefile_bits_per_sample_obj,
|
||||
(mp_obj_t)&audioio_wavefile_get_bits_per_sample_obj);
|
||||
//| channel_count: int
|
||||
//| """Number of audio channels. (read only)"""
|
||||
@ -174,7 +174,7 @@ STATIC mp_obj_t audioio_wavefile_obj_get_channel_count(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audioio_wavefile_get_channel_count_obj, audioio_wavefile_obj_get_channel_count);
|
||||
|
||||
const mp_obj_property_getter_t audioio_wavefile_channel_count_obj = MP_PROPERTY_GETTER(audioio_wavefile_channel_count_obj,
|
||||
MP_PROPERTY_GETTER(audioio_wavefile_channel_count_obj,
|
||||
(mp_obj_t)&audioio_wavefile_get_channel_count_obj);
|
||||
|
||||
|
||||
|
@ -197,7 +197,7 @@ STATIC mp_obj_t audioio_audioout_obj_get_playing(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audioio_audioout_get_playing_obj, audioio_audioout_obj_get_playing);
|
||||
|
||||
const mp_obj_property_getter_t audioio_audioout_playing_obj = MP_PROPERTY_GETTER(audioio_audioout_playing_obj,
|
||||
MP_PROPERTY_GETTER(audioio_audioout_playing_obj,
|
||||
(mp_obj_t)&audioio_audioout_get_playing_obj);
|
||||
|
||||
//| def pause(self) -> None:
|
||||
@ -242,7 +242,7 @@ STATIC mp_obj_t audioio_audioout_obj_get_paused(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audioio_audioout_get_paused_obj, audioio_audioout_obj_get_paused);
|
||||
|
||||
const mp_obj_property_getter_t audioio_audioout_paused_obj = MP_PROPERTY_GETTER(audioio_audioout_paused_obj,
|
||||
MP_PROPERTY_GETTER(audioio_audioout_paused_obj,
|
||||
(mp_obj_t)&audioio_audioout_get_paused_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t audioio_audioout_locals_dict_table[] = {
|
||||
|
@ -166,7 +166,7 @@ STATIC mp_obj_t audiomixer_mixer_obj_get_playing(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomixer_mixer_get_playing_obj, audiomixer_mixer_obj_get_playing);
|
||||
|
||||
const mp_obj_property_getter_t audiomixer_mixer_playing_obj = MP_PROPERTY_GETTER(audiomixer_mixer_playing_obj,
|
||||
MP_PROPERTY_GETTER(audiomixer_mixer_playing_obj,
|
||||
(mp_obj_t)&audiomixer_mixer_get_playing_obj);
|
||||
|
||||
//| sample_rate: int
|
||||
@ -179,7 +179,7 @@ STATIC mp_obj_t audiomixer_mixer_obj_get_sample_rate(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomixer_mixer_get_sample_rate_obj, audiomixer_mixer_obj_get_sample_rate);
|
||||
|
||||
const mp_obj_property_getter_t audiomixer_mixer_sample_rate_obj = MP_PROPERTY_GETTER(audiomixer_mixer_sample_rate_obj,
|
||||
MP_PROPERTY_GETTER(audiomixer_mixer_sample_rate_obj,
|
||||
(mp_obj_t)&audiomixer_mixer_get_sample_rate_obj);
|
||||
|
||||
//| voice: Tuple[MixerVoice, ...]
|
||||
@ -196,7 +196,7 @@ STATIC mp_obj_t audiomixer_mixer_obj_get_voice(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomixer_mixer_get_voice_obj, audiomixer_mixer_obj_get_voice);
|
||||
|
||||
const mp_obj_property_getter_t audiomixer_mixer_voice_obj = MP_PROPERTY_GETTER(audiomixer_mixer_voice_obj,
|
||||
MP_PROPERTY_GETTER(audiomixer_mixer_voice_obj,
|
||||
(mp_obj_t)&audiomixer_mixer_get_voice_obj);
|
||||
|
||||
//| def play(self, sample: circuitpython_typing.AudioSample, *, voice: int = 0, loop: bool = False) -> None:
|
||||
|
@ -130,7 +130,7 @@ STATIC mp_obj_t audiomixer_mixervoice_obj_set_level(size_t n_args, const mp_obj_
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_KW(audiomixer_mixervoice_set_level_obj, 1, audiomixer_mixervoice_obj_set_level);
|
||||
|
||||
const mp_obj_property_getset_t audiomixer_mixervoice_level_obj = MP_PROPERTY_GETSET(audiomixer_mixervoice_level_obj,
|
||||
MP_PROPERTY_GETSET(audiomixer_mixervoice_level_obj,
|
||||
(mp_obj_t)&audiomixer_mixervoice_get_level_obj,
|
||||
(mp_obj_t)&audiomixer_mixervoice_set_level_obj);
|
||||
|
||||
@ -146,7 +146,7 @@ STATIC mp_obj_t audiomixer_mixervoice_obj_get_playing(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomixer_mixervoice_get_playing_obj, audiomixer_mixervoice_obj_get_playing);
|
||||
|
||||
const mp_obj_property_getter_t audiomixer_mixervoice_playing_obj = MP_PROPERTY_GETTER(audiomixer_mixervoice_playing_obj,
|
||||
MP_PROPERTY_GETTER(audiomixer_mixervoice_playing_obj,
|
||||
(mp_obj_t)&audiomixer_mixervoice_get_playing_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t audiomixer_mixervoice_locals_dict_table[] = {
|
||||
|
@ -166,7 +166,7 @@ STATIC mp_obj_t audiomp3_mp3file_obj_set_file(mp_obj_t self_in, mp_obj_t file) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(audiomp3_mp3file_set_file_obj, audiomp3_mp3file_obj_set_file);
|
||||
|
||||
const mp_obj_property_getset_t audiomp3_mp3file_file_obj = MP_PROPERTY_GETSET(audiomp3_mp3file_file_obj,
|
||||
MP_PROPERTY_GETSET(audiomp3_mp3file_file_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_get_file_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_set_file_obj);
|
||||
|
||||
@ -192,7 +192,7 @@ STATIC mp_obj_t audiomp3_mp3file_obj_set_sample_rate(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(audiomp3_mp3file_set_sample_rate_obj, audiomp3_mp3file_obj_set_sample_rate);
|
||||
|
||||
const mp_obj_property_getset_t audiomp3_mp3file_sample_rate_obj = MP_PROPERTY_GETSET(audiomp3_mp3file_sample_rate_obj,
|
||||
MP_PROPERTY_GETSET(audiomp3_mp3file_sample_rate_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_get_sample_rate_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_set_sample_rate_obj);
|
||||
|
||||
@ -206,7 +206,7 @@ STATIC mp_obj_t audiomp3_mp3file_obj_get_bits_per_sample(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomp3_mp3file_get_bits_per_sample_obj, audiomp3_mp3file_obj_get_bits_per_sample);
|
||||
|
||||
const mp_obj_property_getter_t audiomp3_mp3file_bits_per_sample_obj = MP_PROPERTY_GETTER(audiomp3_mp3file_bits_per_sample_obj,
|
||||
MP_PROPERTY_GETTER(audiomp3_mp3file_bits_per_sample_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_get_bits_per_sample_obj);
|
||||
|
||||
//| channel_count: int
|
||||
@ -219,7 +219,7 @@ STATIC mp_obj_t audiomp3_mp3file_obj_get_channel_count(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomp3_mp3file_get_channel_count_obj, audiomp3_mp3file_obj_get_channel_count);
|
||||
|
||||
const mp_obj_property_getter_t audiomp3_mp3file_channel_count_obj = MP_PROPERTY_GETTER(audiomp3_mp3file_channel_count_obj,
|
||||
MP_PROPERTY_GETTER(audiomp3_mp3file_channel_count_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_get_channel_count_obj);
|
||||
|
||||
//| rms_level: float
|
||||
@ -232,7 +232,7 @@ STATIC mp_obj_t audiomp3_mp3file_obj_get_rms_level(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomp3_mp3file_get_rms_level_obj, audiomp3_mp3file_obj_get_rms_level);
|
||||
|
||||
const mp_obj_property_getter_t audiomp3_mp3file_rms_level_obj = MP_PROPERTY_GETTER(audiomp3_mp3file_rms_level_obj,
|
||||
MP_PROPERTY_GETTER(audiomp3_mp3file_rms_level_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_get_rms_level_obj);
|
||||
|
||||
//| samples_decoded: int
|
||||
@ -245,7 +245,7 @@ STATIC mp_obj_t audiomp3_mp3file_obj_get_samples_decoded(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiomp3_mp3file_get_samples_decoded_obj, audiomp3_mp3file_obj_get_samples_decoded);
|
||||
|
||||
const mp_obj_property_getter_t audiomp3_mp3file_samples_decoded_obj = MP_PROPERTY_GETTER(audiomp3_mp3file_samples_decoded_obj,
|
||||
MP_PROPERTY_GETTER(audiomp3_mp3file_samples_decoded_obj,
|
||||
(mp_obj_t)&audiomp3_mp3file_get_samples_decoded_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t audiomp3_mp3file_locals_dict_table[] = {
|
||||
|
@ -198,7 +198,7 @@ STATIC mp_obj_t audiopwmio_pwmaudioout_obj_get_playing(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiopwmio_pwmaudioout_get_playing_obj, audiopwmio_pwmaudioout_obj_get_playing);
|
||||
|
||||
const mp_obj_property_getter_t audiopwmio_pwmaudioout_playing_obj = MP_PROPERTY_GETTER(audiopwmio_pwmaudioout_playing_obj,
|
||||
MP_PROPERTY_GETTER(audiopwmio_pwmaudioout_playing_obj,
|
||||
(mp_obj_t)&audiopwmio_pwmaudioout_get_playing_obj);
|
||||
|
||||
//| def pause(self) -> None:
|
||||
@ -243,7 +243,7 @@ STATIC mp_obj_t audiopwmio_pwmaudioout_obj_get_paused(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(audiopwmio_pwmaudioout_get_paused_obj, audiopwmio_pwmaudioout_obj_get_paused);
|
||||
|
||||
const mp_obj_property_getter_t audiopwmio_pwmaudioout_paused_obj = MP_PROPERTY_GETTER(audiopwmio_pwmaudioout_paused_obj,
|
||||
MP_PROPERTY_GETTER(audiopwmio_pwmaudioout_paused_obj,
|
||||
(mp_obj_t)&audiopwmio_pwmaudioout_get_paused_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t audiopwmio_pwmaudioout_locals_dict_table[] = {
|
||||
|
@ -425,7 +425,7 @@ STATIC mp_obj_t busio_spi_obj_get_frequency(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(busio_spi_get_frequency_obj, busio_spi_obj_get_frequency);
|
||||
|
||||
const mp_obj_property_getter_t busio_spi_frequency_obj = MP_PROPERTY_GETTER(busio_spi_frequency_obj,
|
||||
MP_PROPERTY_GETTER(busio_spi_frequency_obj,
|
||||
(mp_obj_t)&busio_spi_get_frequency_obj);
|
||||
#endif // CIRCUITPY_BUSIO_SPI
|
||||
|
||||
|
@ -303,7 +303,7 @@ STATIC mp_obj_t busio_uart_obj_set_baudrate(mp_obj_t self_in, mp_obj_t baudrate)
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(busio_uart_set_baudrate_obj, busio_uart_obj_set_baudrate);
|
||||
|
||||
|
||||
const mp_obj_property_getset_t busio_uart_baudrate_obj = MP_PROPERTY_GETSET(busio_uart_baudrate_obj,
|
||||
MP_PROPERTY_GETSET(busio_uart_baudrate_obj,
|
||||
(mp_obj_t)&busio_uart_get_baudrate_obj,
|
||||
(mp_obj_t)&busio_uart_set_baudrate_obj);
|
||||
|
||||
@ -317,7 +317,7 @@ STATIC mp_obj_t busio_uart_obj_get_in_waiting(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(busio_uart_get_in_waiting_obj, busio_uart_obj_get_in_waiting);
|
||||
|
||||
const mp_obj_property_getter_t busio_uart_in_waiting_obj = MP_PROPERTY_GETTER(busio_uart_in_waiting_obj,
|
||||
MP_PROPERTY_GETTER(busio_uart_in_waiting_obj,
|
||||
(mp_obj_t)&busio_uart_get_in_waiting_obj);
|
||||
|
||||
//| timeout: float
|
||||
@ -341,7 +341,7 @@ STATIC mp_obj_t busio_uart_obj_set_timeout(mp_obj_t self_in, mp_obj_t timeout) {
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(busio_uart_set_timeout_obj, busio_uart_obj_set_timeout);
|
||||
|
||||
|
||||
const mp_obj_property_getset_t busio_uart_timeout_obj = MP_PROPERTY_GETSET(busio_uart_timeout_obj,
|
||||
MP_PROPERTY_GETSET(busio_uart_timeout_obj,
|
||||
(mp_obj_t)&busio_uart_get_timeout_obj,
|
||||
(mp_obj_t)&busio_uart_set_timeout_obj);
|
||||
|
||||
|
@ -112,7 +112,7 @@ STATIC mp_obj_t canio_can_auto_restart_set(mp_obj_t self_in, mp_obj_t flag_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(canio_can_auto_restart_set_obj, canio_can_auto_restart_set);
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_can_auto_restart_obj = MP_PROPERTY_GETSET(canio_can_auto_restart_obj,
|
||||
MP_PROPERTY_GETSET(canio_can_auto_restart_obj,
|
||||
(mp_obj_t)&canio_can_auto_restart_get_obj,
|
||||
(mp_obj_t)&canio_can_auto_restart_set_obj);
|
||||
|
||||
@ -127,7 +127,7 @@ STATIC mp_obj_t canio_can_baudrate_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_can_baudrate_get_obj, canio_can_baudrate_get);
|
||||
|
||||
STATIC const mp_obj_property_getter_t canio_can_baudrate_obj = MP_PROPERTY_GETTER(canio_can_baudrate_obj,
|
||||
MP_PROPERTY_GETTER(canio_can_baudrate_obj,
|
||||
(mp_obj_t)&canio_can_baudrate_get_obj);
|
||||
|
||||
//| transmit_error_count: int
|
||||
@ -140,7 +140,7 @@ STATIC mp_obj_t canio_can_transmit_error_count_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_can_transmit_error_count_get_obj, canio_can_transmit_error_count_get);
|
||||
|
||||
STATIC const mp_obj_property_getter_t canio_can_transmit_error_count_obj = MP_PROPERTY_GETTER(canio_can_transmit_error_count_obj,
|
||||
MP_PROPERTY_GETTER(canio_can_transmit_error_count_obj,
|
||||
(mp_obj_t)&canio_can_transmit_error_count_get_obj);
|
||||
|
||||
//| receive_error_count: int
|
||||
@ -153,7 +153,7 @@ STATIC mp_obj_t canio_can_receive_error_count_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_can_receive_error_count_get_obj, canio_can_receive_error_count_get);
|
||||
|
||||
STATIC const mp_obj_property_getter_t canio_can_receive_error_count_obj = MP_PROPERTY_GETTER(canio_can_receive_error_count_obj,
|
||||
MP_PROPERTY_GETTER(canio_can_receive_error_count_obj,
|
||||
(mp_obj_t)&canio_can_receive_error_count_get_obj);
|
||||
|
||||
//| state: BusState
|
||||
@ -166,7 +166,7 @@ STATIC mp_obj_t canio_can_state_get(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_can_state_get_obj, canio_can_state_get);
|
||||
|
||||
STATIC const mp_obj_property_getter_t canio_can_state_obj = MP_PROPERTY_GETTER(canio_can_state_obj,
|
||||
MP_PROPERTY_GETTER(canio_can_state_obj,
|
||||
(mp_obj_t)&canio_can_state_get_obj);
|
||||
|
||||
|
||||
@ -264,7 +264,7 @@ STATIC mp_obj_t canio_can_loopback_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_can_loopback_get_obj, canio_can_loopback_get);
|
||||
|
||||
STATIC const mp_obj_property_getter_t canio_can_loopback_obj = MP_PROPERTY_GETTER(canio_can_loopback_obj,
|
||||
MP_PROPERTY_GETTER(canio_can_loopback_obj,
|
||||
(mp_obj_t)&canio_can_loopback_get_obj);
|
||||
|
||||
|
||||
@ -299,7 +299,7 @@ STATIC mp_obj_t canio_can_silent_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_can_silent_get_obj, canio_can_silent_get);
|
||||
|
||||
STATIC const mp_obj_property_getter_t canio_can_silent_obj = MP_PROPERTY_GETTER(canio_can_silent_obj,
|
||||
MP_PROPERTY_GETTER(canio_can_silent_obj,
|
||||
(mp_obj_t)&canio_can_silent_get_obj);
|
||||
|
||||
|
||||
|
@ -150,7 +150,7 @@ STATIC mp_obj_t canio_listener_timeout_set(mp_obj_t self_in, mp_obj_t timeout_in
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(canio_listener_timeout_set_obj, canio_listener_timeout_set);
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_listener_timeout_obj = MP_PROPERTY_GETSET(canio_listener_timeout_obj,
|
||||
MP_PROPERTY_GETSET(canio_listener_timeout_obj,
|
||||
(mp_obj_t)&canio_listener_timeout_get_obj,
|
||||
(mp_obj_t)&canio_listener_timeout_set_obj);
|
||||
|
||||
|
@ -82,7 +82,7 @@ STATIC mp_obj_t canio_match_id_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_match_id_get_obj, canio_match_id_get);
|
||||
|
||||
const mp_obj_property_getter_t canio_match_id_obj = MP_PROPERTY_GETTER(canio_match_id_obj,
|
||||
MP_PROPERTY_GETTER(canio_match_id_obj,
|
||||
(mp_obj_t)&canio_match_id_get_obj);
|
||||
|
||||
//|
|
||||
@ -96,7 +96,7 @@ STATIC mp_obj_t canio_match_mask_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_match_mask_get_obj, canio_match_mask_get);
|
||||
|
||||
const mp_obj_property_getter_t canio_match_mask_obj = MP_PROPERTY_GETTER(canio_match_mask_obj,
|
||||
MP_PROPERTY_GETTER(canio_match_mask_obj,
|
||||
(mp_obj_t)&canio_match_mask_get_obj);
|
||||
|
||||
//| extended: bool
|
||||
@ -109,7 +109,7 @@ STATIC mp_obj_t canio_match_extended_get(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(canio_match_extended_get_obj, canio_match_extended_get);
|
||||
|
||||
const mp_obj_property_getter_t canio_match_extended_obj = MP_PROPERTY_GETTER(canio_match_extended_obj,
|
||||
MP_PROPERTY_GETTER(canio_match_extended_obj,
|
||||
(mp_obj_t)&canio_match_extended_get_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t canio_match_locals_dict_table[] = {
|
||||
|
@ -83,7 +83,7 @@ STATIC mp_obj_t canio_message_id_set(const mp_obj_t self_in, const mp_obj_t id)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(canio_message_id_set_obj, canio_message_id_set);
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_message_id_obj = MP_PROPERTY_GETSET(canio_message_id_obj,
|
||||
MP_PROPERTY_GETSET(canio_message_id_obj,
|
||||
(mp_obj_t)&canio_message_id_get_obj,
|
||||
(mp_obj_t)&canio_message_id_set_obj);
|
||||
|
||||
@ -109,7 +109,7 @@ STATIC mp_obj_t canio_message_data_set(const mp_obj_t self_in, const mp_obj_t da
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(canio_message_data_set_obj, canio_message_data_set);
|
||||
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_message_data_obj = MP_PROPERTY_GETSET(canio_message_data_obj,
|
||||
MP_PROPERTY_GETSET(canio_message_data_obj,
|
||||
(mp_obj_t)&canio_message_data_get_obj,
|
||||
(mp_obj_t)&canio_message_data_set_obj);
|
||||
|
||||
@ -131,7 +131,7 @@ STATIC mp_obj_t canio_message_extended_set(const mp_obj_t self_in, const mp_obj_
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(canio_message_extended_set_obj, canio_message_extended_set);
|
||||
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_message_extended_obj = MP_PROPERTY_GETSET(canio_message_extended_obj,
|
||||
MP_PROPERTY_GETSET(canio_message_extended_obj,
|
||||
(mp_obj_t)&canio_message_extended_get_obj,
|
||||
(mp_obj_t)&canio_message_extended_set_obj);
|
||||
|
||||
|
@ -82,7 +82,7 @@ STATIC mp_obj_t canio_remote_transmission_request_id_set(const mp_obj_t self_in,
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(canio_remote_transmission_request_id_set_obj, canio_remote_transmission_request_id_set);
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_remote_transmission_request_id_obj = MP_PROPERTY_GETSET(canio_remote_transmission_request_id_obj,
|
||||
MP_PROPERTY_GETSET(canio_remote_transmission_request_id_obj,
|
||||
(mp_obj_t)&canio_remote_transmission_request_id_get_obj,
|
||||
(mp_obj_t)&canio_remote_transmission_request_id_set_obj);
|
||||
|
||||
@ -103,7 +103,7 @@ STATIC mp_obj_t canio_remote_transmission_request_extended_set(const mp_obj_t se
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(canio_remote_transmission_request_extended_set_obj, canio_remote_transmission_request_extended_set);
|
||||
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_remote_transmission_request_extended_obj = MP_PROPERTY_GETSET(canio_remote_transmission_request_extended_obj,
|
||||
MP_PROPERTY_GETSET(canio_remote_transmission_request_extended_obj,
|
||||
(mp_obj_t)&canio_remote_transmission_request_extended_get_obj,
|
||||
(mp_obj_t)&canio_remote_transmission_request_extended_set_obj);
|
||||
|
||||
@ -128,7 +128,7 @@ STATIC mp_obj_t canio_remote_transmission_request_length_set(const mp_obj_t self
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(canio_remote_transmission_request_length_set_obj, canio_remote_transmission_request_length_set);
|
||||
|
||||
|
||||
STATIC const mp_obj_property_getset_t canio_remote_transmission_request_length_obj = MP_PROPERTY_GETSET(canio_remote_transmission_request_length_obj,
|
||||
MP_PROPERTY_GETSET(canio_remote_transmission_request_length_obj,
|
||||
(mp_obj_t)&canio_remote_transmission_request_length_get_obj,
|
||||
(mp_obj_t)&canio_remote_transmission_request_length_set_obj);
|
||||
|
||||
|
@ -114,7 +114,7 @@ STATIC mp_obj_t countio_counter_obj_set_count(mp_obj_t self_in, mp_obj_t new_cou
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(countio_counter_set_count_obj, countio_counter_obj_set_count);
|
||||
|
||||
const mp_obj_property_getset_t countio_counter_count_obj = MP_PROPERTY_GETSET(countio_counter_count_obj,
|
||||
MP_PROPERTY_GETSET(countio_counter_count_obj,
|
||||
(mp_obj_t)&countio_counter_get_count_obj,
|
||||
(mp_obj_t)&countio_counter_set_count_obj);
|
||||
|
||||
|
@ -213,7 +213,7 @@ STATIC mp_obj_t digitalio_digitalinout_obj_set_direction(mp_obj_t self_in, mp_ob
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(digitalio_digitalinout_set_direction_obj, digitalio_digitalinout_obj_set_direction);
|
||||
|
||||
const mp_obj_property_getset_t digitalio_digitalio_direction_obj = MP_PROPERTY_GETSET(digitalio_digitalio_direction_obj,
|
||||
MP_PROPERTY_GETSET(digitalio_digitalio_direction_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_get_direction_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_set_direction_obj);
|
||||
|
||||
@ -240,7 +240,7 @@ STATIC mp_obj_t digitalio_digitalinout_obj_set_value(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(digitalio_digitalinout_set_value_obj, digitalio_digitalinout_obj_set_value);
|
||||
|
||||
const mp_obj_property_getset_t digitalio_digitalinout_value_obj = MP_PROPERTY_GETSET(digitalio_digitalinout_value_obj,
|
||||
MP_PROPERTY_GETSET(digitalio_digitalinout_value_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_get_value_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_set_value_obj);
|
||||
|
||||
@ -281,7 +281,7 @@ STATIC mp_obj_t digitalio_digitalinout_obj_set_drive_mode(mp_obj_t self_in, mp_o
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(digitalio_digitalinout_set_drive_mode_obj, digitalio_digitalinout_obj_set_drive_mode);
|
||||
|
||||
const mp_obj_property_getset_t digitalio_digitalio_drive_mode_obj = MP_PROPERTY_GETSET(digitalio_digitalio_drive_mode_obj,
|
||||
MP_PROPERTY_GETSET(digitalio_digitalio_drive_mode_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_get_drive_mode_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_set_drive_mode_obj);
|
||||
|
||||
@ -324,7 +324,7 @@ STATIC mp_obj_t digitalio_digitalinout_obj_set_pull(mp_obj_t self_in, mp_obj_t p
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(digitalio_digitalinout_set_pull_obj, digitalio_digitalinout_obj_set_pull);
|
||||
|
||||
const mp_obj_property_getset_t digitalio_digitalio_pull_obj = MP_PROPERTY_GETSET(digitalio_digitalio_pull_obj,
|
||||
MP_PROPERTY_GETSET(digitalio_digitalio_pull_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_get_pull_obj,
|
||||
(mp_obj_t)&digitalio_digitalinout_set_pull_obj);
|
||||
|
||||
|
@ -97,7 +97,7 @@ STATIC mp_obj_t displayio_bitmap_obj_get_width(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_bitmap_get_width_obj, displayio_bitmap_obj_get_width);
|
||||
|
||||
const mp_obj_property_getter_t displayio_bitmap_width_obj = MP_PROPERTY_GETTER(displayio_bitmap_width_obj,
|
||||
MP_PROPERTY_GETTER(displayio_bitmap_width_obj,
|
||||
(mp_obj_t)&displayio_bitmap_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -111,7 +111,7 @@ STATIC mp_obj_t displayio_bitmap_obj_get_height(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_bitmap_get_height_obj, displayio_bitmap_obj_get_height);
|
||||
|
||||
const mp_obj_property_getter_t displayio_bitmap_height_obj = MP_PROPERTY_GETTER(displayio_bitmap_height_obj,
|
||||
MP_PROPERTY_GETTER(displayio_bitmap_height_obj,
|
||||
(mp_obj_t)&displayio_bitmap_get_height_obj);
|
||||
|
||||
//| def __getitem__(self, index: Union[Tuple[int, int], int]) -> int:
|
||||
|
@ -103,7 +103,7 @@ STATIC mp_obj_t displayio_colorconverter_obj_set_dither(mp_obj_t self_in, mp_obj
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_colorconverter_set_dither_obj, displayio_colorconverter_obj_set_dither);
|
||||
|
||||
const mp_obj_property_getset_t displayio_colorconverter_dither_obj = MP_PROPERTY_GETSET(displayio_colorconverter_dither_obj,
|
||||
MP_PROPERTY_GETSET(displayio_colorconverter_dither_obj,
|
||||
(mp_obj_t)&displayio_colorconverter_get_dither_obj,
|
||||
(mp_obj_t)&displayio_colorconverter_set_dither_obj);
|
||||
|
||||
|
@ -297,7 +297,7 @@ STATIC mp_obj_t displayio_display_obj_set_auto_refresh(mp_obj_t self_in, mp_obj_
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_display_set_auto_refresh_obj, displayio_display_obj_set_auto_refresh);
|
||||
|
||||
const mp_obj_property_getset_t displayio_display_auto_refresh_obj = MP_PROPERTY_GETSET(displayio_display_auto_refresh_obj,
|
||||
MP_PROPERTY_GETSET(displayio_display_auto_refresh_obj,
|
||||
(mp_obj_t)&displayio_display_get_auto_refresh_obj,
|
||||
(mp_obj_t)&displayio_display_set_auto_refresh_obj);
|
||||
|
||||
@ -331,7 +331,7 @@ STATIC mp_obj_t displayio_display_obj_set_brightness(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_display_set_brightness_obj, displayio_display_obj_set_brightness);
|
||||
|
||||
const mp_obj_property_getset_t displayio_display_brightness_obj = MP_PROPERTY_GETSET(displayio_display_brightness_obj,
|
||||
MP_PROPERTY_GETSET(displayio_display_brightness_obj,
|
||||
(mp_obj_t)&displayio_display_get_brightness_obj,
|
||||
(mp_obj_t)&displayio_display_set_brightness_obj);
|
||||
|
||||
@ -356,7 +356,7 @@ STATIC mp_obj_t displayio_display_obj_set_auto_brightness(mp_obj_t self_in, mp_o
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_display_set_auto_brightness_obj, displayio_display_obj_set_auto_brightness);
|
||||
|
||||
const mp_obj_property_getset_t displayio_display_auto_brightness_obj = MP_PROPERTY_GETSET(displayio_display_auto_brightness_obj,
|
||||
MP_PROPERTY_GETSET(displayio_display_auto_brightness_obj,
|
||||
(mp_obj_t)&displayio_display_get_auto_brightness_obj,
|
||||
(mp_obj_t)&displayio_display_set_auto_brightness_obj);
|
||||
|
||||
@ -372,7 +372,7 @@ STATIC mp_obj_t displayio_display_obj_get_width(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_display_get_width_obj, displayio_display_obj_get_width);
|
||||
|
||||
const mp_obj_property_getter_t displayio_display_width_obj = MP_PROPERTY_GETTER(displayio_display_width_obj,
|
||||
MP_PROPERTY_GETTER(displayio_display_width_obj,
|
||||
(mp_obj_t)&displayio_display_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -384,7 +384,7 @@ STATIC mp_obj_t displayio_display_obj_get_height(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_display_get_height_obj, displayio_display_obj_get_height);
|
||||
|
||||
const mp_obj_property_getter_t displayio_display_height_obj = MP_PROPERTY_GETTER(displayio_display_height_obj,
|
||||
MP_PROPERTY_GETTER(displayio_display_height_obj,
|
||||
(mp_obj_t)&displayio_display_get_height_obj);
|
||||
|
||||
//| rotation: int
|
||||
@ -403,7 +403,7 @@ STATIC mp_obj_t displayio_display_obj_set_rotation(mp_obj_t self_in, mp_obj_t va
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_display_set_rotation_obj, displayio_display_obj_set_rotation);
|
||||
|
||||
|
||||
const mp_obj_property_getset_t displayio_display_rotation_obj = MP_PROPERTY_GETSET(displayio_display_rotation_obj,
|
||||
MP_PROPERTY_GETSET(displayio_display_rotation_obj,
|
||||
(mp_obj_t)&displayio_display_get_rotation_obj,
|
||||
(mp_obj_t)&displayio_display_set_rotation_obj);
|
||||
|
||||
@ -417,7 +417,7 @@ STATIC mp_obj_t displayio_display_obj_get_bus(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_display_get_bus_obj, displayio_display_obj_get_bus);
|
||||
|
||||
const mp_obj_property_getter_t displayio_display_bus_obj = MP_PROPERTY_GETTER(displayio_display_bus_obj,
|
||||
MP_PROPERTY_GETTER(displayio_display_bus_obj,
|
||||
(mp_obj_t)&displayio_display_get_bus_obj);
|
||||
|
||||
//| root_group: Group
|
||||
@ -430,7 +430,7 @@ STATIC mp_obj_t displayio_display_obj_get_root_group(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_display_get_root_group_obj, displayio_display_obj_get_root_group);
|
||||
|
||||
const mp_obj_property_getter_t displayio_display_root_group_obj = MP_PROPERTY_GETTER(displayio_display_root_group_obj,
|
||||
MP_PROPERTY_GETTER(displayio_display_root_group_obj,
|
||||
(mp_obj_t)&displayio_display_get_root_group_obj);
|
||||
|
||||
|
||||
|
@ -268,7 +268,7 @@ STATIC mp_obj_t displayio_epaperdisplay_obj_get_time_to_refresh(mp_obj_t self_in
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_epaperdisplay_get_time_to_refresh_obj, displayio_epaperdisplay_obj_get_time_to_refresh);
|
||||
|
||||
const mp_obj_property_getter_t displayio_epaperdisplay_time_to_refresh_obj = MP_PROPERTY_GETTER(displayio_epaperdisplay_time_to_refresh_obj,
|
||||
MP_PROPERTY_GETTER(displayio_epaperdisplay_time_to_refresh_obj,
|
||||
(mp_obj_t)&displayio_epaperdisplay_get_time_to_refresh_obj);
|
||||
|
||||
//| busy: bool
|
||||
@ -281,7 +281,7 @@ STATIC mp_obj_t displayio_epaperdisplay_obj_get_busy(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_epaperdisplay_get_busy_obj, displayio_epaperdisplay_obj_get_busy);
|
||||
|
||||
const mp_obj_property_getter_t displayio_epaperdisplay_busy_obj = MP_PROPERTY_GETTER(displayio_epaperdisplay_busy_obj,
|
||||
MP_PROPERTY_GETTER(displayio_epaperdisplay_busy_obj,
|
||||
(mp_obj_t)&displayio_epaperdisplay_get_busy_obj);
|
||||
|
||||
//| width: int
|
||||
@ -293,7 +293,7 @@ STATIC mp_obj_t displayio_epaperdisplay_obj_get_width(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_epaperdisplay_get_width_obj, displayio_epaperdisplay_obj_get_width);
|
||||
|
||||
const mp_obj_property_getter_t displayio_epaperdisplay_width_obj = MP_PROPERTY_GETTER(displayio_epaperdisplay_width_obj,
|
||||
MP_PROPERTY_GETTER(displayio_epaperdisplay_width_obj,
|
||||
(mp_obj_t)&displayio_epaperdisplay_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -305,7 +305,7 @@ STATIC mp_obj_t displayio_epaperdisplay_obj_get_height(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_epaperdisplay_get_height_obj, displayio_epaperdisplay_obj_get_height);
|
||||
|
||||
const mp_obj_property_getter_t displayio_epaperdisplay_height_obj = MP_PROPERTY_GETTER(displayio_epaperdisplay_height_obj,
|
||||
MP_PROPERTY_GETTER(displayio_epaperdisplay_height_obj,
|
||||
(mp_obj_t)&displayio_epaperdisplay_get_height_obj);
|
||||
|
||||
//| rotation: int
|
||||
@ -324,7 +324,7 @@ STATIC mp_obj_t displayio_epaperdisplay_obj_set_rotation(mp_obj_t self_in, mp_ob
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_epaperdisplay_set_rotation_obj, displayio_epaperdisplay_obj_set_rotation);
|
||||
|
||||
|
||||
const mp_obj_property_getset_t displayio_epaperdisplay_rotation_obj = MP_PROPERTY_GETSET(displayio_epaperdisplay_rotation_obj,
|
||||
MP_PROPERTY_GETSET(displayio_epaperdisplay_rotation_obj,
|
||||
(mp_obj_t)&displayio_epaperdisplay_get_rotation_obj,
|
||||
(mp_obj_t)&displayio_epaperdisplay_set_rotation_obj);
|
||||
|
||||
@ -337,7 +337,7 @@ STATIC mp_obj_t displayio_epaperdisplay_obj_get_bus(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_epaperdisplay_get_bus_obj, displayio_epaperdisplay_obj_get_bus);
|
||||
|
||||
const mp_obj_property_getter_t displayio_epaperdisplay_bus_obj = MP_PROPERTY_GETTER(displayio_epaperdisplay_bus_obj,
|
||||
MP_PROPERTY_GETTER(displayio_epaperdisplay_bus_obj,
|
||||
(mp_obj_t)&displayio_epaperdisplay_get_bus_obj);
|
||||
|
||||
|
||||
|
@ -97,7 +97,7 @@ STATIC mp_obj_t displayio_group_obj_set_hidden(mp_obj_t self_in, mp_obj_t hidden
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_set_hidden_obj, displayio_group_obj_set_hidden);
|
||||
|
||||
const mp_obj_property_getset_t displayio_group_hidden_obj = MP_PROPERTY_GETSET(displayio_group_hidden_obj,
|
||||
MP_PROPERTY_GETSET(displayio_group_hidden_obj,
|
||||
(mp_obj_t)&displayio_group_get_hidden_obj,
|
||||
(mp_obj_t)&displayio_group_set_hidden_obj);
|
||||
|
||||
@ -123,7 +123,7 @@ STATIC mp_obj_t displayio_group_obj_set_scale(mp_obj_t self_in, mp_obj_t scale_o
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_set_scale_obj, displayio_group_obj_set_scale);
|
||||
|
||||
const mp_obj_property_getset_t displayio_group_scale_obj = MP_PROPERTY_GETSET(displayio_group_scale_obj,
|
||||
MP_PROPERTY_GETSET(displayio_group_scale_obj,
|
||||
(mp_obj_t)&displayio_group_get_scale_obj,
|
||||
(mp_obj_t)&displayio_group_set_scale_obj);
|
||||
|
||||
@ -145,7 +145,7 @@ STATIC mp_obj_t displayio_group_obj_set_x(mp_obj_t self_in, mp_obj_t x_obj) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_set_x_obj, displayio_group_obj_set_x);
|
||||
|
||||
const mp_obj_property_getset_t displayio_group_x_obj = MP_PROPERTY_GETSET(displayio_group_x_obj,
|
||||
MP_PROPERTY_GETSET(displayio_group_x_obj,
|
||||
(mp_obj_t)&displayio_group_get_x_obj,
|
||||
(mp_obj_t)&displayio_group_set_x_obj);
|
||||
|
||||
@ -167,7 +167,7 @@ STATIC mp_obj_t displayio_group_obj_set_y(mp_obj_t self_in, mp_obj_t y_obj) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_group_set_y_obj, displayio_group_obj_set_y);
|
||||
|
||||
const mp_obj_property_getset_t displayio_group_y_obj = MP_PROPERTY_GETSET(displayio_group_y_obj,
|
||||
MP_PROPERTY_GETSET(displayio_group_y_obj,
|
||||
(mp_obj_t)&displayio_group_get_y_obj,
|
||||
(mp_obj_t)&displayio_group_set_y_obj);
|
||||
|
||||
|
@ -109,7 +109,7 @@ STATIC mp_obj_t displayio_ondiskbitmap_obj_get_width(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_ondiskbitmap_get_width_obj, displayio_ondiskbitmap_obj_get_width);
|
||||
|
||||
const mp_obj_property_getter_t displayio_ondiskbitmap_width_obj = MP_PROPERTY_GETTER(displayio_ondiskbitmap_width_obj,
|
||||
MP_PROPERTY_GETTER(displayio_ondiskbitmap_width_obj,
|
||||
(mp_obj_t)&displayio_ondiskbitmap_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -123,7 +123,7 @@ STATIC mp_obj_t displayio_ondiskbitmap_obj_get_height(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_ondiskbitmap_get_height_obj, displayio_ondiskbitmap_obj_get_height);
|
||||
|
||||
const mp_obj_property_getter_t displayio_ondiskbitmap_height_obj = MP_PROPERTY_GETTER(displayio_ondiskbitmap_height_obj,
|
||||
MP_PROPERTY_GETTER(displayio_ondiskbitmap_height_obj,
|
||||
(mp_obj_t)&displayio_ondiskbitmap_get_height_obj);
|
||||
|
||||
//| pixel_shader: Union[ColorConverter, Palette]
|
||||
|
@ -161,7 +161,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_hidden(mp_obj_t self_in, mp_obj_t hid
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_hidden_obj, displayio_tilegrid_obj_set_hidden);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_hidden_obj = MP_PROPERTY_GETSET(displayio_tilegrid_hidden_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_hidden_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_hidden_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_hidden_obj);
|
||||
|
||||
@ -183,7 +183,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_x(mp_obj_t self_in, mp_obj_t x_obj) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_x_obj, displayio_tilegrid_obj_set_x);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_x_obj = MP_PROPERTY_GETSET(displayio_tilegrid_x_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_x_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_x_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_x_obj);
|
||||
|
||||
@ -205,7 +205,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_y(mp_obj_t self_in, mp_obj_t y_obj) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_y_obj, displayio_tilegrid_obj_set_y);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_y_obj = MP_PROPERTY_GETSET(displayio_tilegrid_y_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_y_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_y_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_y_obj);
|
||||
|
||||
@ -218,7 +218,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_get_width(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_tilegrid_get_width_obj, displayio_tilegrid_obj_get_width);
|
||||
|
||||
const mp_obj_property_getter_t displayio_tilegrid_width_obj = MP_PROPERTY_GETTER(displayio_tilegrid_width_obj,
|
||||
MP_PROPERTY_GETTER(displayio_tilegrid_width_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -230,7 +230,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_get_height(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_tilegrid_get_height_obj, displayio_tilegrid_obj_get_height);
|
||||
|
||||
const mp_obj_property_getter_t displayio_tilegrid_height_obj = MP_PROPERTY_GETTER(displayio_tilegrid_height_obj,
|
||||
MP_PROPERTY_GETTER(displayio_tilegrid_height_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_height_obj);
|
||||
|
||||
//| tile_width: int
|
||||
@ -242,7 +242,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_get_tile_width(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_tilegrid_get_tile_width_obj, displayio_tilegrid_obj_get_tile_width);
|
||||
|
||||
const mp_obj_property_getter_t displayio_tilegrid_tile_width_obj = MP_PROPERTY_GETTER(displayio_tilegrid_tile_width_obj,
|
||||
MP_PROPERTY_GETTER(displayio_tilegrid_tile_width_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_tile_width_obj);
|
||||
|
||||
//| tile_height: int
|
||||
@ -254,7 +254,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_get_tile_height(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(displayio_tilegrid_get_tile_height_obj, displayio_tilegrid_obj_get_tile_height);
|
||||
|
||||
const mp_obj_property_getter_t displayio_tilegrid_tile_height_obj = MP_PROPERTY_GETTER(displayio_tilegrid_tile_height_obj,
|
||||
MP_PROPERTY_GETTER(displayio_tilegrid_tile_height_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_tile_height_obj);
|
||||
|
||||
//| flip_x: bool
|
||||
@ -274,7 +274,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_flip_x(mp_obj_t self_in, mp_obj_t fli
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_flip_x_obj, displayio_tilegrid_obj_set_flip_x);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_flip_x_obj = MP_PROPERTY_GETSET(displayio_tilegrid_flip_x_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_flip_x_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_flip_x_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_flip_x_obj);
|
||||
|
||||
@ -295,7 +295,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_flip_y(mp_obj_t self_in, mp_obj_t fli
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_flip_y_obj, displayio_tilegrid_obj_set_flip_y);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_flip_y_obj = MP_PROPERTY_GETSET(displayio_tilegrid_flip_y_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_flip_y_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_flip_y_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_flip_y_obj);
|
||||
|
||||
@ -318,7 +318,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_transpose_xy(mp_obj_t self_in, mp_obj
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_transpose_xy_obj, displayio_tilegrid_obj_set_transpose_xy);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_transpose_xy_obj = MP_PROPERTY_GETSET(displayio_tilegrid_transpose_xy_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_transpose_xy_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_transpose_xy_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_transpose_xy_obj);
|
||||
|
||||
@ -343,7 +343,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_pixel_shader(mp_obj_t self_in, mp_obj
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_pixel_shader_obj, displayio_tilegrid_obj_set_pixel_shader);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_pixel_shader_obj = MP_PROPERTY_GETSET(displayio_tilegrid_pixel_shader_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_pixel_shader_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_pixel_shader_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_pixel_shader_obj);
|
||||
|
||||
@ -406,7 +406,7 @@ STATIC mp_obj_t displayio_tilegrid_obj_set_bitmap(mp_obj_t self_in, mp_obj_t bit
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_set_bitmap_obj, displayio_tilegrid_obj_set_bitmap);
|
||||
|
||||
const mp_obj_property_getset_t displayio_tilegrid_bitmap_obj = MP_PROPERTY_GETSET(displayio_tilegrid_bitmap_obj,
|
||||
MP_PROPERTY_GETSET(displayio_tilegrid_bitmap_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_get_bitmap_obj,
|
||||
(mp_obj_t)&displayio_tilegrid_set_bitmap_obj);
|
||||
|
||||
|
@ -76,7 +76,7 @@ STATIC mp_obj_t fontio_builtinfont_obj_get_bitmap(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(fontio_builtinfont_get_bitmap_obj, fontio_builtinfont_obj_get_bitmap);
|
||||
|
||||
const mp_obj_property_getter_t fontio_builtinfont_bitmap_obj = MP_PROPERTY_GETTER(fontio_builtinfont_bitmap_obj,
|
||||
MP_PROPERTY_GETTER(fontio_builtinfont_bitmap_obj,
|
||||
(mp_obj_t)&fontio_builtinfont_get_bitmap_obj);
|
||||
|
||||
//| def get_bounding_box(self) -> Tuple[int, int]:
|
||||
|
@ -168,7 +168,7 @@ STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_auto_refresh(mp_obj_t s
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_auto_refresh_obj, framebufferio_framebufferdisplay_obj_set_auto_refresh);
|
||||
|
||||
const mp_obj_property_getset_t framebufferio_framebufferdisplay_auto_refresh_obj = MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_auto_refresh_obj,
|
||||
MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_auto_refresh_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_get_auto_refresh_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_auto_refresh_obj);
|
||||
|
||||
@ -202,7 +202,7 @@ STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_brightness(mp_obj_t sel
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_brightness_obj, framebufferio_framebufferdisplay_obj_set_brightness);
|
||||
|
||||
const mp_obj_property_getset_t framebufferio_framebufferdisplay_brightness_obj = MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_brightness_obj,
|
||||
MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_brightness_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_get_brightness_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_brightness_obj);
|
||||
|
||||
@ -230,7 +230,7 @@ STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_auto_brightness(mp_obj_
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_auto_brightness_obj, framebufferio_framebufferdisplay_obj_set_auto_brightness);
|
||||
|
||||
const mp_obj_property_getset_t framebufferio_framebufferdisplay_auto_brightness_obj = MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_auto_brightness_obj,
|
||||
MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_auto_brightness_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_get_auto_brightness_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_auto_brightness_obj);
|
||||
|
||||
@ -243,7 +243,7 @@ STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_width(mp_obj_t self_in)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_width_obj, framebufferio_framebufferdisplay_obj_get_width);
|
||||
|
||||
const mp_obj_property_getter_t framebufferio_framebufferdisplay_width_obj = MP_PROPERTY_GETTER(framebufferio_framebufferdisplay_width_obj,
|
||||
MP_PROPERTY_GETTER(framebufferio_framebufferdisplay_width_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -255,7 +255,7 @@ STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_height(mp_obj_t self_in
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_height_obj, framebufferio_framebufferdisplay_obj_get_height);
|
||||
|
||||
const mp_obj_property_getter_t framebufferio_framebufferdisplay_height_obj = MP_PROPERTY_GETTER(framebufferio_framebufferdisplay_height_obj,
|
||||
MP_PROPERTY_GETTER(framebufferio_framebufferdisplay_height_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_get_height_obj);
|
||||
|
||||
//| rotation: int
|
||||
@ -274,7 +274,7 @@ STATIC mp_obj_t framebufferio_framebufferdisplay_obj_set_rotation(mp_obj_t self_
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(framebufferio_framebufferdisplay_set_rotation_obj, framebufferio_framebufferdisplay_obj_set_rotation);
|
||||
|
||||
|
||||
const mp_obj_property_getset_t framebufferio_framebufferdisplay_rotation_obj = MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_rotation_obj,
|
||||
MP_PROPERTY_GETSET(framebufferio_framebufferdisplay_rotation_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_get_rotation_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_set_rotation_obj);
|
||||
|
||||
@ -288,7 +288,7 @@ STATIC mp_obj_t framebufferio_framebufferdisplay_obj_get_framebuffer(mp_obj_t se
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(framebufferio_framebufferdisplay_get_framebuffer_obj, framebufferio_framebufferdisplay_obj_get_framebuffer);
|
||||
|
||||
const mp_obj_property_getter_t framebufferio_framebufferframebuffer_obj = MP_PROPERTY_GETTER(framebufferio_framebufferframebuffer_obj,
|
||||
MP_PROPERTY_GETTER(framebufferio_framebufferframebuffer_obj,
|
||||
(mp_obj_t)&framebufferio_framebufferdisplay_get_framebuffer_obj);
|
||||
|
||||
|
||||
|
@ -193,7 +193,7 @@ STATIC mp_obj_t frequencyio_frequencyin_obj_set_capture_period(mp_obj_t self_in,
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(frequencyio_frequency_set_capture_period_obj, frequencyio_frequencyin_obj_set_capture_period);
|
||||
|
||||
const mp_obj_property_getset_t frequencyio_frequencyin_capture_period_obj = MP_PROPERTY_GETSET(frequencyio_frequencyin_capture_period_obj,
|
||||
MP_PROPERTY_GETSET(frequencyio_frequencyin_capture_period_obj,
|
||||
(mp_obj_t)&frequencyio_frequency_get_capture_period_obj,
|
||||
(mp_obj_t)&frequencyio_frequency_set_capture_period_obj);
|
||||
|
||||
@ -210,7 +210,7 @@ STATIC mp_obj_t frequencyio_frequencyin_obj_get_value(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(frequencyio_frequencyin_get_value_obj, frequencyio_frequencyin_obj_get_value);
|
||||
|
||||
const mp_obj_property_getter_t frequencyio_frequencyin_value_obj = MP_PROPERTY_GETTER(frequencyio_frequencyin_value_obj,
|
||||
MP_PROPERTY_GETTER(frequencyio_frequencyin_value_obj,
|
||||
(mp_obj_t)&frequencyio_frequencyin_get_value_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t frequencyio_frequencyin_locals_dict_table[] = {
|
||||
|
@ -108,7 +108,7 @@ STATIC mp_obj_t gnss_obj_get_latitude(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(gnss_get_latitude_obj, gnss_obj_get_latitude);
|
||||
|
||||
const mp_obj_property_getter_t gnss_latitude_obj = MP_PROPERTY_GETTER(gnss_latitude_obj,
|
||||
MP_PROPERTY_GETTER(gnss_latitude_obj,
|
||||
(mp_obj_t)&gnss_get_latitude_obj);
|
||||
|
||||
//| longitude: float
|
||||
@ -121,7 +121,7 @@ STATIC mp_obj_t gnss_obj_get_longitude(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(gnss_get_longitude_obj, gnss_obj_get_longitude);
|
||||
|
||||
const mp_obj_property_getter_t gnss_longitude_obj = MP_PROPERTY_GETTER(gnss_longitude_obj,
|
||||
MP_PROPERTY_GETTER(gnss_longitude_obj,
|
||||
(mp_obj_t)&gnss_get_longitude_obj);
|
||||
|
||||
//| altitude: float
|
||||
@ -134,7 +134,7 @@ STATIC mp_obj_t gnss_obj_get_altitude(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(gnss_get_altitude_obj, gnss_obj_get_altitude);
|
||||
|
||||
const mp_obj_property_getter_t gnss_altitude_obj = MP_PROPERTY_GETTER(gnss_altitude_obj,
|
||||
MP_PROPERTY_GETTER(gnss_altitude_obj,
|
||||
(mp_obj_t)&gnss_get_altitude_obj);
|
||||
|
||||
//| timestamp: time.struct_time
|
||||
@ -149,7 +149,7 @@ STATIC mp_obj_t gnss_obj_get_timestamp(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(gnss_get_timestamp_obj, gnss_obj_get_timestamp);
|
||||
|
||||
const mp_obj_property_getter_t gnss_timestamp_obj = MP_PROPERTY_GETTER(gnss_timestamp_obj,
|
||||
MP_PROPERTY_GETTER(gnss_timestamp_obj,
|
||||
(mp_obj_t)&gnss_get_timestamp_obj);
|
||||
|
||||
//| fix: PositionFix
|
||||
@ -162,7 +162,7 @@ STATIC mp_obj_t gnss_obj_get_fix(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(gnss_get_fix_obj, gnss_obj_get_fix);
|
||||
|
||||
const mp_obj_property_getter_t gnss_fix_obj = MP_PROPERTY_GETTER(gnss_fix_obj,
|
||||
MP_PROPERTY_GETTER(gnss_fix_obj,
|
||||
(mp_obj_t)&gnss_get_fix_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t gnss_locals_dict_table[] = {
|
||||
|
@ -96,7 +96,7 @@ STATIC mp_obj_t ipaddress_ipv4address_get_packed(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(ipaddress_ipv4address_get_packed_obj, ipaddress_ipv4address_get_packed);
|
||||
|
||||
const mp_obj_property_getter_t ipaddress_ipv4address_packed_obj = MP_PROPERTY_GETTER(ipaddress_ipv4address_packed_obj,
|
||||
MP_PROPERTY_GETTER(ipaddress_ipv4address_packed_obj,
|
||||
(mp_obj_t)&ipaddress_ipv4address_get_packed_obj);
|
||||
|
||||
//| version: int
|
||||
@ -116,7 +116,7 @@ STATIC mp_obj_t ipaddress_ipv4address_get_version(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(ipaddress_ipv4address_get_version_obj, ipaddress_ipv4address_get_version);
|
||||
|
||||
const mp_obj_property_getter_t ipaddress_ipv4address_version_obj = MP_PROPERTY_GETTER(ipaddress_ipv4address_version_obj,
|
||||
MP_PROPERTY_GETTER(ipaddress_ipv4address_version_obj,
|
||||
(mp_obj_t)&ipaddress_ipv4address_get_version_obj);
|
||||
|
||||
//| def __eq__(self, other: object) -> bool:
|
||||
|
@ -166,7 +166,7 @@ STATIC mp_obj_t is31fl3741_FrameBuffer_set_brightness(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(is31fl3741_FrameBuffer_set_brightness_obj, is31fl3741_FrameBuffer_set_brightness);
|
||||
|
||||
const mp_obj_property_getset_t is31fl3741_FrameBuffer_brightness_obj = MP_PROPERTY_GETSET(is31fl3741_FrameBuffer_brightness_obj,
|
||||
MP_PROPERTY_GETSET(is31fl3741_FrameBuffer_brightness_obj,
|
||||
(mp_obj_t)&is31fl3741_FrameBuffer_get_brightness_obj,
|
||||
(mp_obj_t)&is31fl3741_FrameBuffer_set_brightness_obj);
|
||||
|
||||
@ -192,7 +192,7 @@ STATIC mp_obj_t is31fl3741_FrameBuffer_get_width(mp_obj_t self_in) {
|
||||
return MP_OBJ_NEW_SMALL_INT(common_hal_is31fl3741_FrameBuffer_get_width(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(is31fl3741_FrameBuffer_get_width_obj, is31fl3741_FrameBuffer_get_width);
|
||||
const mp_obj_property_getter_t is31fl3741_FrameBuffer_width_obj = MP_PROPERTY_GETTER(is31fl3741_FrameBuffer_width_obj,
|
||||
MP_PROPERTY_GETTER(is31fl3741_FrameBuffer_width_obj,
|
||||
(mp_obj_t)&is31fl3741_FrameBuffer_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -204,7 +204,7 @@ STATIC mp_obj_t is31fl3741_FrameBuffer_get_height(mp_obj_t self_in) {
|
||||
return MP_OBJ_NEW_SMALL_INT(common_hal_is31fl3741_FrameBuffer_get_height(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(is31fl3741_FrameBuffer_get_height_obj, is31fl3741_FrameBuffer_get_height);
|
||||
const mp_obj_property_getter_t is31fl3741_FrameBuffer_height_obj = MP_PROPERTY_GETTER(is31fl3741_FrameBuffer_height_obj,
|
||||
MP_PROPERTY_GETTER(is31fl3741_FrameBuffer_height_obj,
|
||||
(mp_obj_t)&is31fl3741_FrameBuffer_get_height_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t is31fl3741_FrameBuffer_locals_dict_table[] = {
|
||||
|
@ -76,7 +76,7 @@ STATIC mp_obj_t keypad_event_get_key_number(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(keypad_event_get_key_number_obj, keypad_event_get_key_number);
|
||||
|
||||
const mp_obj_property_getter_t keypad_event_key_number_obj = MP_PROPERTY_GETTER(keypad_event_key_number_obj,
|
||||
MP_PROPERTY_GETTER(keypad_event_key_number_obj,
|
||||
(mp_obj_t)&keypad_event_get_key_number_obj);
|
||||
|
||||
//| pressed: bool
|
||||
@ -90,7 +90,7 @@ STATIC mp_obj_t keypad_event_get_pressed(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(keypad_event_get_pressed_obj, keypad_event_get_pressed);
|
||||
|
||||
const mp_obj_property_getter_t keypad_event_pressed_obj = MP_PROPERTY_GETTER(keypad_event_pressed_obj,
|
||||
MP_PROPERTY_GETTER(keypad_event_pressed_obj,
|
||||
(mp_obj_t)&keypad_event_get_pressed_obj);
|
||||
|
||||
//| released: bool
|
||||
@ -104,7 +104,7 @@ STATIC mp_obj_t keypad_event_get_released(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(keypad_event_get_released_obj, keypad_event_get_released);
|
||||
|
||||
const mp_obj_property_getter_t keypad_event_released_obj = MP_PROPERTY_GETTER(keypad_event_released_obj,
|
||||
MP_PROPERTY_GETTER(keypad_event_released_obj,
|
||||
(mp_obj_t)&keypad_event_get_released_obj);
|
||||
|
||||
//| timestamp: int
|
||||
@ -116,7 +116,7 @@ STATIC mp_obj_t keypad_event_get_timestamp(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(keypad_event_get_timestamp_obj, keypad_event_get_timestamp);
|
||||
|
||||
const mp_obj_property_getter_t keypad_event_timestamp_obj = MP_PROPERTY_GETTER(keypad_event_timestamp_obj,
|
||||
MP_PROPERTY_GETTER(keypad_event_timestamp_obj,
|
||||
(mp_obj_t)&keypad_event_get_timestamp_obj);
|
||||
|
||||
|
||||
|
@ -129,7 +129,7 @@ STATIC mp_obj_t keypad_eventqueue_get_overflowed(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(keypad_eventqueue_get_overflowed_obj, keypad_eventqueue_get_overflowed);
|
||||
|
||||
const mp_obj_property_getter_t keypad_eventqueue_overflowed_obj = MP_PROPERTY_GETTER(keypad_eventqueue_overflowed_obj,
|
||||
MP_PROPERTY_GETTER(keypad_eventqueue_overflowed_obj,
|
||||
(mp_obj_t)&keypad_eventqueue_get_overflowed_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t keypad_eventqueue_locals_dict_table[] = {
|
||||
|
@ -52,7 +52,7 @@ STATIC mp_obj_t mdns_remoteservice_get_hostname(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mdns_remoteservice_get_hostname_obj, mdns_remoteservice_get_hostname);
|
||||
|
||||
const mp_obj_property_getter_t mdns_remoteservice_hostname_obj = MP_PROPERTY_GETTER(mdns_remoteservice_hostname_obj,
|
||||
MP_PROPERTY_GETTER(mdns_remoteservice_hostname_obj,
|
||||
(mp_obj_t)&mdns_remoteservice_get_hostname_obj);
|
||||
|
||||
//| instance_name: str
|
||||
@ -65,7 +65,7 @@ STATIC mp_obj_t remoteservice_get_instance_name(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mdns_remoteservice_get_instance_name_obj, remoteservice_get_instance_name);
|
||||
|
||||
const mp_obj_property_getter_t mdns_remoteservice_instance_name_obj = MP_PROPERTY_GETTER(mdns_remoteservice_instance_name_obj,
|
||||
MP_PROPERTY_GETTER(mdns_remoteservice_instance_name_obj,
|
||||
(mp_obj_t)&mdns_remoteservice_get_instance_name_obj);
|
||||
|
||||
//| service_type: str
|
||||
@ -78,7 +78,7 @@ STATIC mp_obj_t remoteservice_get_service_type(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mdns_remoteservice_get_service_type_obj, remoteservice_get_service_type);
|
||||
|
||||
const mp_obj_property_getter_t mdns_remoteservice_service_type_obj = MP_PROPERTY_GETTER(mdns_remoteservice_service_type_obj,
|
||||
MP_PROPERTY_GETTER(mdns_remoteservice_service_type_obj,
|
||||
(mp_obj_t)&mdns_remoteservice_get_service_type_obj);
|
||||
|
||||
//| protocol: str
|
||||
@ -91,7 +91,7 @@ STATIC mp_obj_t remoteservice_get_protocol(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mdns_remoteservice_get_protocol_obj, remoteservice_get_protocol);
|
||||
|
||||
const mp_obj_property_getter_t mdns_remoteservice_protocol_obj = MP_PROPERTY_GETTER(mdns_remoteservice_protocol_obj,
|
||||
MP_PROPERTY_GETTER(mdns_remoteservice_protocol_obj,
|
||||
(mp_obj_t)&mdns_remoteservice_get_protocol_obj);
|
||||
|
||||
//| port: int
|
||||
@ -103,7 +103,7 @@ STATIC mp_obj_t remoteservice_get_port(mp_obj_t self_in) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mdns_remoteservice_get_port_obj, remoteservice_get_port);
|
||||
|
||||
const mp_obj_property_getter_t mdns_remoteservice_port_obj = MP_PROPERTY_GETTER(mdns_remoteservice_port_obj,
|
||||
MP_PROPERTY_GETTER(mdns_remoteservice_port_obj,
|
||||
(mp_obj_t)&mdns_remoteservice_get_port_obj);
|
||||
|
||||
//| def __del__(self) -> None:
|
||||
|
@ -99,7 +99,7 @@ static mp_obj_t mdns_server_set_hostname(mp_obj_t self, mp_obj_t hostname) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(mdns_server_set_hostname_obj, mdns_server_set_hostname);
|
||||
|
||||
const mp_obj_property_getset_t mdns_server_hostname_obj = MP_PROPERTY_GETSET(mdns_server_hostname_obj,
|
||||
MP_PROPERTY_GETSET(mdns_server_hostname_obj,
|
||||
(mp_obj_t)&mdns_server_get_hostname_obj,
|
||||
(mp_obj_t)&mdns_server_set_hostname_obj);
|
||||
|
||||
@ -120,7 +120,7 @@ STATIC mp_obj_t mdns_server_set_instance_name(mp_obj_t self, mp_obj_t new_instan
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(mdns_server_set_instance_name_obj, mdns_server_set_instance_name);
|
||||
|
||||
const mp_obj_property_getset_t mdns_server_instance_name_obj = MP_PROPERTY_GETSET(mdns_server_instance_name_obj,
|
||||
MP_PROPERTY_GETSET(mdns_server_instance_name_obj,
|
||||
(mp_obj_t)&mdns_server_get_instance_name_obj,
|
||||
(mp_obj_t)&mdns_server_set_instance_name_obj);
|
||||
|
||||
|
@ -105,7 +105,7 @@ STATIC mp_obj_t memorymonitor_allocationsize_obj_get_bytes_per_block(mp_obj_t se
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(memorymonitor_allocationsize_get_bytes_per_block_obj, memorymonitor_allocationsize_obj_get_bytes_per_block);
|
||||
|
||||
const mp_obj_property_getter_t memorymonitor_allocationsize_bytes_per_block_obj = MP_PROPERTY_GETTER(memorymonitor_allocationsize_bytes_per_block_obj,
|
||||
MP_PROPERTY_GETTER(memorymonitor_allocationsize_bytes_per_block_obj,
|
||||
(mp_obj_t)&memorymonitor_allocationsize_get_bytes_per_block_obj);
|
||||
|
||||
//| def __len__(self) -> int:
|
||||
|
@ -88,7 +88,7 @@ STATIC mp_obj_t mcu_processor_get_frequency(mp_obj_t self) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(mcu_processor_get_frequency_obj, mcu_processor_get_frequency);
|
||||
|
||||
const mp_obj_property_getset_t mcu_processor_frequency_obj = MP_PROPERTY_GETSET(mcu_processor_frequency_obj,
|
||||
MP_PROPERTY_GETSET(mcu_processor_frequency_obj,
|
||||
(mp_obj_t)&mcu_processor_get_frequency_obj,
|
||||
(mp_obj_t)&mcu_processor_set_frequency_obj);
|
||||
|
||||
@ -101,7 +101,7 @@ STATIC mp_obj_t mcu_processor_get_reset_reason(mp_obj_t self) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(mcu_processor_get_reset_reason_obj, mcu_processor_get_reset_reason);
|
||||
|
||||
const mp_obj_property_getter_t mcu_processor_reset_reason_obj = MP_PROPERTY_GETTER(mcu_processor_reset_reason_obj,
|
||||
MP_PROPERTY_GETTER(mcu_processor_reset_reason_obj,
|
||||
(mp_obj_t)&mcu_processor_get_reset_reason_obj);
|
||||
|
||||
//| temperature: Optional[float]
|
||||
@ -116,7 +116,7 @@ STATIC mp_obj_t mcu_processor_get_temperature(mp_obj_t self) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(mcu_processor_get_temperature_obj, mcu_processor_get_temperature);
|
||||
|
||||
const mp_obj_property_getter_t mcu_processor_temperature_obj = MP_PROPERTY_GETTER(mcu_processor_temperature_obj,
|
||||
MP_PROPERTY_GETTER(mcu_processor_temperature_obj,
|
||||
(mp_obj_t)&mcu_processor_get_temperature_obj);
|
||||
|
||||
//| uid: bytearray
|
||||
@ -130,7 +130,7 @@ STATIC mp_obj_t mcu_processor_get_uid(mp_obj_t self) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(mcu_processor_get_uid_obj, mcu_processor_get_uid);
|
||||
|
||||
const mp_obj_property_getter_t mcu_processor_uid_obj = MP_PROPERTY_GETTER(mcu_processor_uid_obj,
|
||||
MP_PROPERTY_GETTER(mcu_processor_uid_obj,
|
||||
(mp_obj_t)&mcu_processor_get_uid_obj);
|
||||
|
||||
//| voltage: Optional[float]
|
||||
@ -145,7 +145,7 @@ STATIC mp_obj_t mcu_processor_get_voltage(mp_obj_t self) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(mcu_processor_get_voltage_obj, mcu_processor_get_voltage);
|
||||
|
||||
const mp_obj_property_getter_t mcu_processor_voltage_obj = MP_PROPERTY_GETTER(mcu_processor_voltage_obj,
|
||||
MP_PROPERTY_GETTER(mcu_processor_voltage_obj,
|
||||
(mp_obj_t)&mcu_processor_get_voltage_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t mcu_processor_locals_dict_table[] = {
|
||||
|
@ -80,7 +80,7 @@ STATIC mp_obj_t mod_msgpack_exttype_set_code(mp_obj_t self_in, mp_obj_t code_in)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(mod_msgpack_exttype_set_code_obj, mod_msgpack_exttype_set_code);
|
||||
|
||||
const mp_obj_property_getset_t mod_msgpack_exttype_code_obj = MP_PROPERTY_GETSET(mod_msgpack_exttype_code_obj,
|
||||
MP_PROPERTY_GETSET(mod_msgpack_exttype_code_obj,
|
||||
(mp_obj_t)&mod_msgpack_exttype_get_code_obj,
|
||||
(mp_obj_t)&mod_msgpack_exttype_set_code_obj);
|
||||
|
||||
@ -101,7 +101,7 @@ STATIC mp_obj_t mod_msgpack_exttype_set_data(mp_obj_t self_in, mp_obj_t data_in)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(mod_msgpack_exttype_set_data_obj, mod_msgpack_exttype_set_data);
|
||||
|
||||
const mp_obj_property_getset_t mod_msgpack_exttype_data_obj = MP_PROPERTY_GETSET(mod_msgpack_exttype_data_obj,
|
||||
MP_PROPERTY_GETSET(mod_msgpack_exttype_data_obj,
|
||||
(mp_obj_t)&mod_msgpack_exttype_get_data_obj,
|
||||
(mp_obj_t)&mod_msgpack_exttype_set_data_obj);
|
||||
|
||||
|
@ -208,7 +208,7 @@ STATIC mp_obj_t pulseio_pulsein_obj_get_maxlen(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(pulseio_pulsein_get_maxlen_obj, pulseio_pulsein_obj_get_maxlen);
|
||||
|
||||
const mp_obj_property_getter_t pulseio_pulsein_maxlen_obj = MP_PROPERTY_GETTER(pulseio_pulsein_maxlen_obj,
|
||||
MP_PROPERTY_GETTER(pulseio_pulsein_maxlen_obj,
|
||||
(mp_obj_t)&pulseio_pulsein_get_maxlen_obj);
|
||||
|
||||
//| paused: bool
|
||||
@ -223,7 +223,7 @@ STATIC mp_obj_t pulseio_pulsein_obj_get_paused(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(pulseio_pulsein_get_paused_obj, pulseio_pulsein_obj_get_paused);
|
||||
|
||||
const mp_obj_property_getter_t pulseio_pulsein_paused_obj = MP_PROPERTY_GETTER(pulseio_pulsein_paused_obj,
|
||||
MP_PROPERTY_GETTER(pulseio_pulsein_paused_obj,
|
||||
(mp_obj_t)&pulseio_pulsein_get_paused_obj);
|
||||
|
||||
//| def __bool__(self) -> bool: ...
|
||||
|
@ -220,7 +220,7 @@ STATIC mp_obj_t pwmio_pwmout_obj_set_duty_cycle(mp_obj_t self_in, mp_obj_t duty_
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(pwmio_pwmout_set_duty_cycle_obj, pwmio_pwmout_obj_set_duty_cycle);
|
||||
|
||||
const mp_obj_property_getset_t pwmio_pwmout_duty_cycle_obj = MP_PROPERTY_GETSET(pwmio_pwmout_duty_cycle_obj,
|
||||
MP_PROPERTY_GETSET(pwmio_pwmout_duty_cycle_obj,
|
||||
(mp_obj_t)&pwmio_pwmout_get_duty_cycle_obj,
|
||||
(mp_obj_t)&pwmio_pwmout_set_duty_cycle_obj);
|
||||
|
||||
@ -258,7 +258,7 @@ STATIC mp_obj_t pwmio_pwmout_obj_set_frequency(mp_obj_t self_in, mp_obj_t freque
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(pwmio_pwmout_set_frequency_obj, pwmio_pwmout_obj_set_frequency);
|
||||
|
||||
const mp_obj_property_getset_t pwmio_pwmout_frequency_obj = MP_PROPERTY_GETSET(pwmio_pwmout_frequency_obj,
|
||||
MP_PROPERTY_GETSET(pwmio_pwmout_frequency_obj,
|
||||
(mp_obj_t)&pwmio_pwmout_get_frequency_obj,
|
||||
(mp_obj_t)&pwmio_pwmout_set_frequency_obj);
|
||||
|
||||
|
@ -107,7 +107,7 @@ STATIC mp_obj_t qrio_qrdecoder_set_width(mp_obj_t self_in, mp_obj_t width_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(qrio_qrdecoder_set_width_obj, qrio_qrdecoder_set_width);
|
||||
|
||||
const mp_obj_property_getset_t qrio_qrdecoder_width_obj = MP_PROPERTY_GETSET(qrio_qrdecoder_width_obj,
|
||||
MP_PROPERTY_GETSET(qrio_qrdecoder_width_obj,
|
||||
(mp_obj_t)&qrio_qrdecoder_get_width_obj,
|
||||
(mp_obj_t)&qrio_qrdecoder_set_width_obj);
|
||||
|
||||
@ -128,7 +128,7 @@ STATIC mp_obj_t qrio_qrdecoder_set_height(mp_obj_t self_in, mp_obj_t height_in)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(qrio_qrdecoder_set_height_obj, qrio_qrdecoder_set_height);
|
||||
|
||||
const mp_obj_property_getset_t qrio_qrdecoder_height_obj = MP_PROPERTY_GETSET(qrio_qrdecoder_height_obj,
|
||||
MP_PROPERTY_GETSET(qrio_qrdecoder_height_obj,
|
||||
(mp_obj_t)&qrio_qrdecoder_get_height_obj,
|
||||
(mp_obj_t)&qrio_qrdecoder_set_height_obj);
|
||||
|
||||
|
@ -310,7 +310,7 @@ STATIC mp_obj_t rgbmatrix_rgbmatrix_set_brightness(mp_obj_t self_in, mp_obj_t va
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(rgbmatrix_rgbmatrix_set_brightness_obj, rgbmatrix_rgbmatrix_set_brightness);
|
||||
|
||||
const mp_obj_property_getset_t rgbmatrix_rgbmatrix_brightness_obj = MP_PROPERTY_GETSET(rgbmatrix_rgbmatrix_brightness_obj,
|
||||
MP_PROPERTY_GETSET(rgbmatrix_rgbmatrix_brightness_obj,
|
||||
(mp_obj_t)&rgbmatrix_rgbmatrix_get_brightness_obj,
|
||||
(mp_obj_t)&rgbmatrix_rgbmatrix_set_brightness_obj);
|
||||
|
||||
@ -336,7 +336,7 @@ STATIC mp_obj_t rgbmatrix_rgbmatrix_get_width(mp_obj_t self_in) {
|
||||
return MP_OBJ_NEW_SMALL_INT(common_hal_rgbmatrix_rgbmatrix_get_width(self));
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(rgbmatrix_rgbmatrix_get_width_obj, rgbmatrix_rgbmatrix_get_width);
|
||||
const mp_obj_property_getter_t rgbmatrix_rgbmatrix_width_obj = MP_PROPERTY_GETTER(rgbmatrix_rgbmatrix_width_obj,
|
||||
MP_PROPERTY_GETTER(rgbmatrix_rgbmatrix_width_obj,
|
||||
(mp_obj_t)&rgbmatrix_rgbmatrix_get_width_obj);
|
||||
|
||||
//| height: int
|
||||
@ -349,7 +349,7 @@ STATIC mp_obj_t rgbmatrix_rgbmatrix_get_height(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(rgbmatrix_rgbmatrix_get_height_obj, rgbmatrix_rgbmatrix_get_height);
|
||||
|
||||
const mp_obj_property_getter_t rgbmatrix_rgbmatrix_height_obj = MP_PROPERTY_GETTER(rgbmatrix_rgbmatrix_height_obj,
|
||||
MP_PROPERTY_GETTER(rgbmatrix_rgbmatrix_height_obj,
|
||||
(mp_obj_t)&rgbmatrix_rgbmatrix_get_height_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t rgbmatrix_rgbmatrix_locals_dict_table[] = {
|
||||
|
@ -141,7 +141,7 @@ STATIC mp_obj_t rotaryio_incrementalencoder_obj_set_divisor(mp_obj_t self_in, mp
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(rotaryio_incrementalencoder_set_divisor_obj, rotaryio_incrementalencoder_obj_set_divisor);
|
||||
|
||||
const mp_obj_property_getset_t rotaryio_incrementalencoder_divisor_obj = MP_PROPERTY_GETSET(rotaryio_incrementalencoder_divisor_obj,
|
||||
MP_PROPERTY_GETSET(rotaryio_incrementalencoder_divisor_obj,
|
||||
(mp_obj_t)&rotaryio_incrementalencoder_get_divisor_obj,
|
||||
(mp_obj_t)&rotaryio_incrementalencoder_set_divisor_obj);
|
||||
|
||||
@ -166,7 +166,7 @@ STATIC mp_obj_t rotaryio_incrementalencoder_obj_set_position(mp_obj_t self_in, m
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(rotaryio_incrementalencoder_set_position_obj, rotaryio_incrementalencoder_obj_set_position);
|
||||
|
||||
const mp_obj_property_getset_t rotaryio_incrementalencoder_position_obj = MP_PROPERTY_GETSET(rotaryio_incrementalencoder_position_obj,
|
||||
MP_PROPERTY_GETSET(rotaryio_incrementalencoder_position_obj,
|
||||
(mp_obj_t)&rotaryio_incrementalencoder_get_position_obj,
|
||||
(mp_obj_t)&rotaryio_incrementalencoder_set_position_obj);
|
||||
|
||||
|
@ -87,7 +87,7 @@ STATIC mp_obj_t rtc_rtc_obj_set_datetime(mp_obj_t self_in, mp_obj_t datetime) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(rtc_rtc_set_datetime_obj, rtc_rtc_obj_set_datetime);
|
||||
|
||||
const mp_obj_property_getset_t rtc_rtc_datetime_obj = MP_PROPERTY_GETSET(rtc_rtc_datetime_obj,
|
||||
MP_PROPERTY_GETSET(rtc_rtc_datetime_obj,
|
||||
(mp_obj_t)&rtc_rtc_get_datetime_obj,
|
||||
(mp_obj_t)&rtc_rtc_set_datetime_obj);
|
||||
|
||||
@ -115,7 +115,7 @@ STATIC mp_obj_t rtc_rtc_obj_set_calibration(mp_obj_t self_in, mp_obj_t calibrati
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(rtc_rtc_set_calibration_obj, rtc_rtc_obj_set_calibration);
|
||||
|
||||
const mp_obj_property_getset_t rtc_rtc_calibration_obj = MP_PROPERTY_GETSET(rtc_rtc_calibration_obj,
|
||||
MP_PROPERTY_GETSET(rtc_rtc_calibration_obj,
|
||||
(mp_obj_t)&rtc_rtc_get_calibration_obj,
|
||||
(mp_obj_t)&rtc_rtc_set_calibration_obj);
|
||||
|
||||
|
@ -218,7 +218,7 @@ STATIC mp_obj_t sdioio_sdcard_obj_get_frequency(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(sdioio_sdcard_get_frequency_obj, sdioio_sdcard_obj_get_frequency);
|
||||
|
||||
const mp_obj_property_getter_t sdioio_sdcard_frequency_obj = MP_PROPERTY_GETTER(sdioio_sdcard_frequency_obj,
|
||||
MP_PROPERTY_GETTER(sdioio_sdcard_frequency_obj,
|
||||
(mp_obj_t)&sdioio_sdcard_get_frequency_obj);
|
||||
|
||||
//| @property
|
||||
@ -233,7 +233,7 @@ STATIC mp_obj_t sdioio_sdcard_obj_get_width(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(sdioio_sdcard_get_width_obj, sdioio_sdcard_obj_get_width);
|
||||
|
||||
const mp_obj_property_getter_t sdioio_sdcard_width_obj = MP_PROPERTY_GETTER(sdioio_sdcard_width_obj,
|
||||
MP_PROPERTY_GETTER(sdioio_sdcard_width_obj,
|
||||
(mp_obj_t)&sdioio_sdcard_get_width_obj);
|
||||
|
||||
//| def deinit(self) -> None:
|
||||
|
@ -105,7 +105,7 @@ STATIC mp_obj_t ssl_sslcontext_set_check_hostname(mp_obj_t self_in, mp_obj_t val
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(ssl_sslcontext_set_check_hostname_obj, ssl_sslcontext_set_check_hostname);
|
||||
|
||||
const mp_obj_property_getset_t ssl_sslcontext_check_hostname_obj = MP_PROPERTY_GETSET(ssl_sslcontext_check_hostname_obj,
|
||||
MP_PROPERTY_GETSET(ssl_sslcontext_check_hostname_obj,
|
||||
(mp_obj_t)&ssl_sslcontext_get_check_hostname_obj,
|
||||
(mp_obj_t)&ssl_sslcontext_set_check_hostname_obj);
|
||||
|
||||
|
@ -69,7 +69,7 @@ STATIC mp_obj_t supervisor_runtime_get_usb_connected(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(supervisor_runtime_get_usb_connected_obj, supervisor_runtime_get_usb_connected);
|
||||
|
||||
const mp_obj_property_getter_t supervisor_runtime_usb_connected_obj = MP_PROPERTY_GETTER(supervisor_runtime_usb_connected_obj,
|
||||
MP_PROPERTY_GETTER(supervisor_runtime_usb_connected_obj,
|
||||
(mp_obj_t)&supervisor_runtime_get_usb_connected_obj);
|
||||
|
||||
//| serial_connected: bool
|
||||
@ -80,7 +80,7 @@ STATIC mp_obj_t supervisor_runtime_get_serial_connected(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(supervisor_runtime_get_serial_connected_obj, supervisor_runtime_get_serial_connected);
|
||||
|
||||
const mp_obj_property_getter_t supervisor_runtime_serial_connected_obj = MP_PROPERTY_GETTER(supervisor_runtime_serial_connected_obj,
|
||||
MP_PROPERTY_GETTER(supervisor_runtime_serial_connected_obj,
|
||||
(mp_obj_t)&supervisor_runtime_get_serial_connected_obj);
|
||||
|
||||
//| serial_bytes_available: int
|
||||
@ -93,7 +93,7 @@ STATIC mp_obj_t supervisor_runtime_get_serial_bytes_available(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(supervisor_runtime_get_serial_bytes_available_obj, supervisor_runtime_get_serial_bytes_available);
|
||||
|
||||
const mp_obj_property_getter_t supervisor_runtime_serial_bytes_available_obj = MP_PROPERTY_GETTER(supervisor_runtime_serial_bytes_available_obj,
|
||||
MP_PROPERTY_GETTER(supervisor_runtime_serial_bytes_available_obj,
|
||||
(mp_obj_t)&supervisor_runtime_get_serial_bytes_available_obj);
|
||||
|
||||
supervisor_run_reason_t supervisor_get_run_reason(void) {
|
||||
@ -112,7 +112,7 @@ STATIC mp_obj_t supervisor_runtime_get_run_reason(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(supervisor_runtime_get_run_reason_obj, supervisor_runtime_get_run_reason);
|
||||
|
||||
const mp_obj_property_getter_t supervisor_runtime_run_reason_obj = MP_PROPERTY_GETTER(supervisor_runtime_run_reason_obj,
|
||||
MP_PROPERTY_GETTER(supervisor_runtime_run_reason_obj,
|
||||
(mp_obj_t)&supervisor_runtime_get_run_reason_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t supervisor_runtime_locals_dict_table[] = {
|
||||
|
@ -132,7 +132,7 @@ STATIC mp_obj_t synthio_miditrack_obj_get_sample_rate(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(synthio_miditrack_get_sample_rate_obj, synthio_miditrack_obj_get_sample_rate);
|
||||
|
||||
const mp_obj_property_getter_t synthio_miditrack_sample_rate_obj = MP_PROPERTY_GETTER(synthio_miditrack_sample_rate_obj,
|
||||
MP_PROPERTY_GETTER(synthio_miditrack_sample_rate_obj,
|
||||
(mp_obj_t)&synthio_miditrack_get_sample_rate_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t synthio_miditrack_locals_dict_table[] = {
|
||||
|
@ -120,7 +120,7 @@ STATIC mp_obj_t touchio_touchin_obj_get_value(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(touchio_touchin_get_value_obj, touchio_touchin_obj_get_value);
|
||||
|
||||
const mp_obj_property_getter_t touchio_touchin_value_obj = MP_PROPERTY_GETTER(touchio_touchin_value_obj,
|
||||
MP_PROPERTY_GETTER(touchio_touchin_value_obj,
|
||||
(mp_obj_t)&touchio_touchin_get_value_obj);
|
||||
|
||||
|
||||
@ -135,7 +135,7 @@ STATIC mp_obj_t touchio_touchin_obj_get_raw_value(mp_obj_t self_in) {
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(touchio_touchin_get_raw_value_obj, touchio_touchin_obj_get_raw_value);
|
||||
|
||||
const mp_obj_property_getter_t touchio_touchin_raw_value_obj = MP_PROPERTY_GETTER(touchio_touchin_raw_value_obj,
|
||||
MP_PROPERTY_GETTER(touchio_touchin_raw_value_obj,
|
||||
(mp_obj_t)&touchio_touchin_get_raw_value_obj);
|
||||
|
||||
|
||||
@ -175,7 +175,7 @@ STATIC mp_obj_t touchio_touchin_obj_set_threshold(mp_obj_t self_in, mp_obj_t thr
|
||||
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(touchio_touchin_set_threshold_obj, touchio_touchin_obj_set_threshold);
|
||||
|
||||
const mp_obj_property_getset_t touchio_touchin_threshold_obj = MP_PROPERTY_GETSET(touchio_touchin_threshold_obj,
|
||||
MP_PROPERTY_GETSET(touchio_touchin_threshold_obj,
|
||||
(mp_obj_t)&touchio_touchin_get_threshold_obj,
|
||||
(mp_obj_t)&touchio_touchin_set_threshold_obj);
|
||||
|
||||
|
@ -79,7 +79,7 @@ STATIC mp_obj_t usb_core_device_obj_get_idVendor(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_core_device_get_idVendor_obj, usb_core_device_obj_get_idVendor);
|
||||
|
||||
const mp_obj_property_getter_t usb_core_device_idVendor_obj = MP_PROPERTY_GETTER(usb_core_device_idVendor_obj,
|
||||
MP_PROPERTY_GETTER(usb_core_device_idVendor_obj,
|
||||
(mp_obj_t)&usb_core_device_get_idVendor_obj);
|
||||
|
||||
//| idProduct: int
|
||||
@ -91,7 +91,7 @@ STATIC mp_obj_t usb_core_device_obj_get_idProduct(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_core_device_get_idProduct_obj, usb_core_device_obj_get_idProduct);
|
||||
|
||||
const mp_obj_property_getter_t usb_core_device_idProduct_obj = MP_PROPERTY_GETTER(usb_core_device_idProduct_obj,
|
||||
MP_PROPERTY_GETTER(usb_core_device_idProduct_obj,
|
||||
(mp_obj_t)&usb_core_device_get_idProduct_obj);
|
||||
|
||||
//| serial_number: str
|
||||
@ -103,7 +103,7 @@ STATIC mp_obj_t usb_core_device_obj_get_serial_number(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_core_device_get_serial_number_obj, usb_core_device_obj_get_serial_number);
|
||||
|
||||
const mp_obj_property_getter_t usb_core_device_serial_number_obj = MP_PROPERTY_GETTER(usb_core_device_serial_number_obj,
|
||||
MP_PROPERTY_GETTER(usb_core_device_serial_number_obj,
|
||||
(mp_obj_t)&usb_core_device_get_serial_number_obj);
|
||||
|
||||
//| product: str
|
||||
@ -115,7 +115,7 @@ STATIC mp_obj_t usb_core_device_obj_get_product(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_core_device_get_product_obj, usb_core_device_obj_get_product);
|
||||
|
||||
const mp_obj_property_getter_t usb_core_device_product_obj = MP_PROPERTY_GETTER(usb_core_device_product_obj,
|
||||
MP_PROPERTY_GETTER(usb_core_device_product_obj,
|
||||
(mp_obj_t)&usb_core_device_get_product_obj);
|
||||
|
||||
//| manufacturer: str
|
||||
@ -127,7 +127,7 @@ STATIC mp_obj_t usb_core_device_obj_get_manufacturer(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_core_device_get_manufacturer_obj, usb_core_device_obj_get_manufacturer);
|
||||
|
||||
const mp_obj_property_getter_t usb_core_device_manufacturer_obj = MP_PROPERTY_GETTER(usb_core_device_manufacturer_obj,
|
||||
MP_PROPERTY_GETTER(usb_core_device_manufacturer_obj,
|
||||
(mp_obj_t)&usb_core_device_get_manufacturer_obj);
|
||||
|
||||
//| def write(self, endpoint: int, data: ReadableBuffer, timeout = None) -> int:
|
||||
|
@ -157,7 +157,7 @@ STATIC mp_obj_t usb_cdc_serial_get_connected(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_cdc_serial_get_connected_obj, usb_cdc_serial_get_connected);
|
||||
|
||||
const mp_obj_property_getter_t usb_cdc_serial_connected_obj = MP_PROPERTY_GETTER(usb_cdc_serial_connected_obj,
|
||||
MP_PROPERTY_GETTER(usb_cdc_serial_connected_obj,
|
||||
(mp_obj_t)&usb_cdc_serial_get_connected_obj);
|
||||
|
||||
//| in_waiting: int
|
||||
@ -169,7 +169,7 @@ STATIC mp_obj_t usb_cdc_serial_get_in_waiting(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_cdc_serial_get_in_waiting_obj, usb_cdc_serial_get_in_waiting);
|
||||
|
||||
const mp_obj_property_getter_t usb_cdc_serial_in_waiting_obj = MP_PROPERTY_GETTER(usb_cdc_serial_in_waiting_obj,
|
||||
MP_PROPERTY_GETTER(usb_cdc_serial_in_waiting_obj,
|
||||
(mp_obj_t)&usb_cdc_serial_get_in_waiting_obj);
|
||||
|
||||
//| out_waiting: int
|
||||
@ -181,7 +181,7 @@ STATIC mp_obj_t usb_cdc_serial_get_out_waiting(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_cdc_serial_get_out_waiting_obj, usb_cdc_serial_get_out_waiting);
|
||||
|
||||
const mp_obj_property_getter_t usb_cdc_serial_out_waiting_obj = MP_PROPERTY_GETTER(usb_cdc_serial_out_waiting_obj,
|
||||
MP_PROPERTY_GETTER(usb_cdc_serial_out_waiting_obj,
|
||||
(mp_obj_t)&usb_cdc_serial_get_out_waiting_obj);
|
||||
|
||||
//| def reset_input_buffer(self) -> None:
|
||||
@ -225,7 +225,7 @@ STATIC mp_obj_t usb_cdc_serial_set_timeout(mp_obj_t self_in, mp_obj_t timeout_in
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(usb_cdc_serial_set_timeout_obj, usb_cdc_serial_set_timeout);
|
||||
|
||||
const mp_obj_property_getset_t usb_cdc_serial_timeout_obj = MP_PROPERTY_GETSET(usb_cdc_serial_timeout_obj,
|
||||
MP_PROPERTY_GETSET(usb_cdc_serial_timeout_obj,
|
||||
(mp_obj_t)&usb_cdc_serial_get_timeout_obj,
|
||||
(mp_obj_t)&usb_cdc_serial_set_timeout_obj);
|
||||
|
||||
@ -249,7 +249,7 @@ STATIC mp_obj_t usb_cdc_serial_set_write_timeout(mp_obj_t self_in, mp_obj_t writ
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(usb_cdc_serial_set_write_timeout_obj, usb_cdc_serial_set_write_timeout);
|
||||
|
||||
const mp_obj_property_getset_t usb_cdc_serial_write_timeout_obj = MP_PROPERTY_GETSET(usb_cdc_serial_write_timeout_obj,
|
||||
MP_PROPERTY_GETSET(usb_cdc_serial_write_timeout_obj,
|
||||
(mp_obj_t)&usb_cdc_serial_get_write_timeout_obj,
|
||||
(mp_obj_t)&usb_cdc_serial_set_write_timeout_obj);
|
||||
|
||||
|
@ -236,7 +236,7 @@ STATIC mp_obj_t usb_hid_device_obj_get_last_received_report_property(mp_obj_t se
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_hid_device_get_last_received_report_property_obj, usb_hid_device_obj_get_last_received_report_property);
|
||||
|
||||
const mp_obj_property_getter_t usb_hid_device_last_received_report_obj = MP_PROPERTY_GETTER(usb_hid_device_last_received_report_obj,
|
||||
MP_PROPERTY_GETTER(usb_hid_device_last_received_report_obj,
|
||||
(mp_obj_t)&usb_hid_device_get_last_received_report_property_obj);
|
||||
|
||||
//| usage_page: int
|
||||
@ -248,7 +248,7 @@ STATIC mp_obj_t usb_hid_device_obj_get_usage_page(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_hid_device_get_usage_page_obj, usb_hid_device_obj_get_usage_page);
|
||||
|
||||
const mp_obj_property_getter_t usb_hid_device_usage_page_obj = MP_PROPERTY_GETTER(usb_hid_device_usage_page_obj,
|
||||
MP_PROPERTY_GETTER(usb_hid_device_usage_page_obj,
|
||||
(mp_obj_t)&usb_hid_device_get_usage_page_obj);
|
||||
|
||||
//| usage: int
|
||||
@ -264,7 +264,7 @@ STATIC mp_obj_t usb_hid_device_obj_get_usage(mp_obj_t self_in) {
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(usb_hid_device_get_usage_obj,
|
||||
usb_hid_device_obj_get_usage);
|
||||
|
||||
const mp_obj_property_getter_t usb_hid_device_usage_obj = MP_PROPERTY_GETTER(usb_hid_device_usage_obj,
|
||||
MP_PROPERTY_GETTER(usb_hid_device_usage_obj,
|
||||
(mp_obj_t)&usb_hid_device_get_usage_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t usb_hid_device_locals_dict_table[] = {
|
||||
|
@ -76,7 +76,7 @@ STATIC mp_obj_t vectorio_circle_obj_set_radius(mp_obj_t self_in, mp_obj_t radius
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_circle_set_radius_obj, vectorio_circle_obj_set_radius);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_circle_radius_obj = MP_PROPERTY_GETSET(vectorio_circle_radius_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_circle_radius_obj,
|
||||
(mp_obj_t)&vectorio_circle_get_radius_obj,
|
||||
(mp_obj_t)&vectorio_circle_set_radius_obj);
|
||||
|
||||
@ -96,7 +96,7 @@ STATIC mp_obj_t vectorio_circle_obj_set_color_index(mp_obj_t self_in, mp_obj_t c
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_circle_set_color_index_obj, vectorio_circle_obj_set_color_index);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_circle_color_index_obj = MP_PROPERTY_GETSET(vectorio_circle_color_index_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_circle_color_index_obj,
|
||||
(mp_obj_t)&vectorio_circle_get_color_index_obj,
|
||||
(mp_obj_t)&vectorio_circle_set_color_index_obj);
|
||||
|
||||
|
@ -82,7 +82,7 @@ STATIC mp_obj_t vectorio_polygon_obj_set_points(mp_obj_t self_in, mp_obj_t point
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_polygon_set_points_obj, vectorio_polygon_obj_set_points);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_polygon_points_obj = MP_PROPERTY_GETSET(vectorio_polygon_points_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_polygon_points_obj,
|
||||
(mp_obj_t)&vectorio_polygon_get_points_obj,
|
||||
(mp_obj_t)&vectorio_polygon_set_points_obj);
|
||||
|
||||
@ -102,7 +102,7 @@ STATIC mp_obj_t vectorio_polygon_obj_set_color_index(mp_obj_t self_in, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_polygon_set_color_index_obj, vectorio_polygon_obj_set_color_index);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_polygon_color_index_obj = MP_PROPERTY_GETSET(vectorio_polygon_color_index_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_polygon_color_index_obj,
|
||||
(mp_obj_t)&vectorio_polygon_get_color_index_obj,
|
||||
(mp_obj_t)&vectorio_polygon_set_color_index_obj);
|
||||
|
||||
|
@ -120,7 +120,7 @@ STATIC mp_obj_t vectorio_vector_shape_obj_set_x(mp_obj_t wrapper_shape, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_vector_shape_set_x_obj, vectorio_vector_shape_obj_set_x);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_vector_shape_x_obj = MP_PROPERTY_GETSET(vectorio_vector_shape_x_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_vector_shape_x_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_get_x_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_set_x_obj);
|
||||
|
||||
@ -148,7 +148,7 @@ STATIC mp_obj_t vectorio_vector_shape_obj_set_y(mp_obj_t wrapper_shape, mp_obj_t
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_vector_shape_set_y_obj, vectorio_vector_shape_obj_set_y);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_vector_shape_y_obj = MP_PROPERTY_GETSET(vectorio_vector_shape_y_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_vector_shape_y_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_get_y_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_set_y_obj);
|
||||
|
||||
@ -175,7 +175,7 @@ STATIC mp_obj_t vectorio_vector_shape_obj_set_location(mp_obj_t wrapper_shape, m
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_vector_shape_set_location_obj, vectorio_vector_shape_obj_set_location);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_vector_shape_location_obj = MP_PROPERTY_GETSET(vectorio_vector_shape_location_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_vector_shape_location_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_get_location_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_set_location_obj);
|
||||
|
||||
@ -207,7 +207,7 @@ STATIC mp_obj_t vectorio_vector_shape_obj_set_pixel_shader(mp_obj_t wrapper_shap
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(vectorio_vector_shape_set_pixel_shader_obj, vectorio_vector_shape_obj_set_pixel_shader);
|
||||
|
||||
const mp_obj_property_getset_t vectorio_vector_shape_pixel_shader_obj = MP_PROPERTY_GETSET(vectorio_vector_shape_pixel_shader_obj,
|
||||
MP_PROPERTY_GETSET(vectorio_vector_shape_pixel_shader_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_get_pixel_shader_obj,
|
||||
(mp_obj_t)&vectorio_vector_shape_set_pixel_shader_obj);
|
||||
|
||||
|
@ -38,10 +38,10 @@ void vectorio_vector_shape_update_transform(vectorio_vector_shape_t *self, displ
|
||||
|
||||
// Composable property definition for shapes that use VectorShape
|
||||
extern vectorio_draw_protocol_impl_t vectorio_vector_shape_draw_protocol_impl;
|
||||
extern const mp_obj_property_t vectorio_vector_shape_x_obj;
|
||||
extern const mp_obj_property_t vectorio_vector_shape_y_obj;
|
||||
extern const mp_obj_property_t vectorio_vector_shape_location_obj;
|
||||
extern const mp_obj_property_t vectorio_vector_shape_pixel_shader_obj;
|
||||
extern const mp_obj_property_getset_t vectorio_vector_shape_x_obj;
|
||||
extern const mp_obj_property_getset_t vectorio_vector_shape_y_obj;
|
||||
extern const mp_obj_property_getset_t vectorio_vector_shape_location_obj;
|
||||
extern const mp_obj_property_getset_t vectorio_vector_shape_pixel_shader_obj;
|
||||
extern const mp_obj_fun_builtin_fixed_t vectorio_vector_shape_contains_obj;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_SHAPE_H
|
||||
|
@ -107,7 +107,7 @@ STATIC mp_obj_t watchdog_watchdogtimer_obj_set_timeout(mp_obj_t self_in, mp_obj_
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(watchdog_watchdogtimer_set_timeout_obj, watchdog_watchdogtimer_obj_set_timeout);
|
||||
|
||||
const mp_obj_property_getset_t watchdog_watchdogtimer_timeout_obj = MP_PROPERTY_GETSET(watchdog_watchdogtimer_timeout_obj,
|
||||
MP_PROPERTY_GETSET(watchdog_watchdogtimer_timeout_obj,
|
||||
(mp_obj_t)&watchdog_watchdogtimer_get_timeout_obj,
|
||||
(mp_obj_t)&watchdog_watchdogtimer_set_timeout_obj);
|
||||
|
||||
@ -155,7 +155,7 @@ STATIC mp_obj_t watchdog_watchdogtimer_obj_set_mode(mp_obj_t self_in, mp_obj_t m
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(watchdog_watchdogtimer_set_mode_obj, watchdog_watchdogtimer_obj_set_mode);
|
||||
|
||||
const mp_obj_property_getset_t watchdog_watchdogtimer_mode_obj = MP_PROPERTY_GETSET(watchdog_watchdogtimer_mode_obj,
|
||||
MP_PROPERTY_GETSET(watchdog_watchdogtimer_mode_obj,
|
||||
(mp_obj_t)&watchdog_watchdogtimer_get_mode_obj,
|
||||
(mp_obj_t)&watchdog_watchdogtimer_set_mode_obj);
|
||||
|
||||
|
@ -92,7 +92,7 @@ STATIC mp_obj_t wifi_monitor_obj_set_channel(mp_obj_t self_in, mp_obj_t channel)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(wifi_monitor_set_channel_obj, wifi_monitor_obj_set_channel);
|
||||
|
||||
const mp_obj_property_getset_t wifi_monitor_channel_obj = MP_PROPERTY_GETSET(wifi_monitor_channel_obj,
|
||||
MP_PROPERTY_GETSET(wifi_monitor_channel_obj,
|
||||
(mp_obj_t)&wifi_monitor_get_channel_obj,
|
||||
(mp_obj_t)&wifi_monitor_set_channel_obj);
|
||||
|
||||
@ -104,7 +104,7 @@ STATIC mp_obj_t wifi_monitor_obj_get_queue(mp_obj_t self_in) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_monitor_get_queue_obj, wifi_monitor_obj_get_queue);
|
||||
|
||||
const mp_obj_property_getter_t wifi_monitor_queue_obj = MP_PROPERTY_GETTER(wifi_monitor_queue_obj,
|
||||
MP_PROPERTY_GETTER(wifi_monitor_queue_obj,
|
||||
(mp_obj_t)&wifi_monitor_get_queue_obj);
|
||||
|
||||
//| def deinit(self) -> None:
|
||||
|
@ -50,7 +50,7 @@ STATIC mp_obj_t wifi_network_get_ssid(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_network_get_ssid_obj, wifi_network_get_ssid);
|
||||
|
||||
const mp_obj_property_getter_t wifi_network_ssid_obj = MP_PROPERTY_GETTER(wifi_network_ssid_obj,
|
||||
MP_PROPERTY_GETTER(wifi_network_ssid_obj,
|
||||
(mp_obj_t)&wifi_network_get_ssid_obj);
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ STATIC mp_obj_t wifi_network_get_bssid(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_network_get_bssid_obj, wifi_network_get_bssid);
|
||||
|
||||
const mp_obj_property_getter_t wifi_network_bssid_obj = MP_PROPERTY_GETTER(wifi_network_bssid_obj,
|
||||
MP_PROPERTY_GETTER(wifi_network_bssid_obj,
|
||||
(mp_obj_t)&wifi_network_get_bssid_obj);
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ STATIC mp_obj_t wifi_network_get_rssi(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_network_get_rssi_obj, wifi_network_get_rssi);
|
||||
|
||||
const mp_obj_property_getter_t wifi_network_rssi_obj = MP_PROPERTY_GETTER(wifi_network_rssi_obj,
|
||||
MP_PROPERTY_GETTER(wifi_network_rssi_obj,
|
||||
(mp_obj_t)&wifi_network_get_rssi_obj);
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ STATIC mp_obj_t wifi_network_get_channel(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_network_get_channel_obj, wifi_network_get_channel);
|
||||
|
||||
const mp_obj_property_getter_t wifi_network_channel_obj = MP_PROPERTY_GETTER(wifi_network_channel_obj,
|
||||
MP_PROPERTY_GETTER(wifi_network_channel_obj,
|
||||
(mp_obj_t)&wifi_network_get_channel_obj);
|
||||
|
||||
//| country: str
|
||||
@ -101,7 +101,7 @@ STATIC mp_obj_t wifi_network_get_country(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_network_get_country_obj, wifi_network_get_country);
|
||||
|
||||
const mp_obj_property_getter_t wifi_network_country_obj = MP_PROPERTY_GETTER(wifi_network_country_obj,
|
||||
MP_PROPERTY_GETTER(wifi_network_country_obj,
|
||||
(mp_obj_t)&wifi_network_get_country_obj);
|
||||
|
||||
//| authmode: str
|
||||
@ -113,7 +113,7 @@ STATIC mp_obj_t wifi_network_get_authmode(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_network_get_authmode_obj, wifi_network_get_authmode);
|
||||
|
||||
const mp_obj_property_getter_t wifi_network_authmode_obj = MP_PROPERTY_GETTER(wifi_network_authmode_obj,
|
||||
MP_PROPERTY_GETTER(wifi_network_authmode_obj,
|
||||
(mp_obj_t)&wifi_network_get_authmode_obj);
|
||||
|
||||
STATIC const mp_rom_map_elem_t wifi_network_locals_dict_table[] = {
|
||||
|
@ -69,7 +69,7 @@ static mp_obj_t wifi_radio_set_enabled(mp_obj_t self, mp_obj_t value) {
|
||||
}
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(wifi_radio_set_enabled_obj, wifi_radio_set_enabled);
|
||||
|
||||
const mp_obj_property_getset_t wifi_radio_enabled_obj = MP_PROPERTY_GETSET(wifi_radio_enabled_obj,
|
||||
MP_PROPERTY_GETSET(wifi_radio_enabled_obj,
|
||||
(mp_obj_t)&wifi_radio_get_enabled_obj,
|
||||
(mp_obj_t)&wifi_radio_set_enabled_obj);
|
||||
|
||||
@ -107,7 +107,7 @@ STATIC mp_obj_t wifi_radio_set_hostname(mp_obj_t self_in, mp_obj_t hostname_in)
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(wifi_radio_set_hostname_obj, wifi_radio_set_hostname);
|
||||
|
||||
const mp_obj_property_getset_t wifi_radio_hostname_obj = MP_PROPERTY_GETSET(wifi_radio_hostname_obj,
|
||||
MP_PROPERTY_GETSET(wifi_radio_hostname_obj,
|
||||
(mp_obj_t)&wifi_radio_get_hostname_obj,
|
||||
(mp_obj_t)&wifi_radio_set_hostname_obj);
|
||||
|
||||
@ -136,7 +136,7 @@ STATIC mp_obj_t wifi_radio_set_mac_address(mp_obj_t self_in, mp_obj_t mac_addres
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(wifi_radio_set_mac_address_obj, wifi_radio_set_mac_address);
|
||||
|
||||
const mp_obj_property_getset_t wifi_radio_mac_address_obj = MP_PROPERTY_GETSET(wifi_radio_mac_address_obj,
|
||||
MP_PROPERTY_GETSET(wifi_radio_mac_address_obj,
|
||||
(mp_obj_t)&wifi_radio_get_mac_address_obj,
|
||||
(mp_obj_t)&wifi_radio_set_mac_address_obj);
|
||||
|
||||
@ -165,7 +165,7 @@ STATIC mp_obj_t wifi_radio_set_mac_address_ap(mp_obj_t self_in, mp_obj_t mac_add
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(wifi_radio_set_mac_address_ap_obj, wifi_radio_set_mac_address_ap);
|
||||
|
||||
const mp_obj_property_getset_t wifi_radio_mac_address_ap_obj = MP_PROPERTY_GETSET(wifi_radio_mac_address_ap_obj,
|
||||
MP_PROPERTY_GETSET(wifi_radio_mac_address_ap_obj,
|
||||
(mp_obj_t)&wifi_radio_get_mac_address_ap_obj,
|
||||
(mp_obj_t)&wifi_radio_set_mac_address_ap_obj);
|
||||
|
||||
@ -381,7 +381,7 @@ STATIC mp_obj_t wifi_radio_get_ipv4_gateway(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ipv4_gateway_obj, wifi_radio_get_ipv4_gateway);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ipv4_gateway_obj = MP_PROPERTY_GETTER(wifi_radio_ipv4_gateway_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ipv4_gateway_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ipv4_gateway_obj);
|
||||
|
||||
//| ipv4_gateway_ap: Optional[ipaddress.IPv4Address]
|
||||
@ -393,7 +393,7 @@ STATIC mp_obj_t wifi_radio_get_ipv4_gateway_ap(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ipv4_gateway_ap_obj, wifi_radio_get_ipv4_gateway_ap);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ipv4_gateway_ap_obj = MP_PROPERTY_GETTER(wifi_radio_ipv4_gateway_ap_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ipv4_gateway_ap_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ipv4_gateway_ap_obj);
|
||||
|
||||
//| ipv4_subnet: Optional[ipaddress.IPv4Address]
|
||||
@ -405,7 +405,7 @@ STATIC mp_obj_t wifi_radio_get_ipv4_subnet(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ipv4_subnet_obj, wifi_radio_get_ipv4_subnet);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ipv4_subnet_obj = MP_PROPERTY_GETTER(wifi_radio_ipv4_subnet_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ipv4_subnet_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ipv4_subnet_obj);
|
||||
|
||||
//| ipv4_subnet_ap: Optional[ipaddress.IPv4Address]
|
||||
@ -417,7 +417,7 @@ STATIC mp_obj_t wifi_radio_get_ipv4_subnet_ap(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ipv4_subnet_ap_obj, wifi_radio_get_ipv4_subnet_ap);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ipv4_subnet_ap_obj = MP_PROPERTY_GETTER(wifi_radio_ipv4_subnet_ap_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ipv4_subnet_ap_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ipv4_subnet_ap_obj);
|
||||
|
||||
//| ipv4_address: Optional[ipaddress.IPv4Address]
|
||||
@ -429,7 +429,7 @@ STATIC mp_obj_t wifi_radio_get_ipv4_address(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ipv4_address_obj, wifi_radio_get_ipv4_address);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ipv4_address_obj = MP_PROPERTY_GETTER(wifi_radio_ipv4_address_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ipv4_address_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ipv4_address_obj);
|
||||
|
||||
//| ipv4_address_ap: Optional[ipaddress.IPv4Address]
|
||||
@ -441,7 +441,7 @@ STATIC mp_obj_t wifi_radio_get_ipv4_address_ap(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ipv4_address_ap_obj, wifi_radio_get_ipv4_address_ap);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ipv4_address_ap_obj = MP_PROPERTY_GETTER(wifi_radio_ipv4_address_ap_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ipv4_address_ap_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ipv4_address_ap_obj);
|
||||
|
||||
//| ipv4_dns: Optional[ipaddress.IPv4Address]
|
||||
@ -453,7 +453,7 @@ STATIC mp_obj_t wifi_radio_get_ipv4_dns(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ipv4_dns_obj, wifi_radio_get_ipv4_dns);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ipv4_dns_obj = MP_PROPERTY_GETTER(wifi_radio_ipv4_dns_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ipv4_dns_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ipv4_dns_obj);
|
||||
|
||||
//| ap_info: Optional[Network]
|
||||
@ -465,7 +465,7 @@ STATIC mp_obj_t wifi_radio_get_ap_info(mp_obj_t self) {
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_get_ap_info_obj, wifi_radio_get_ap_info);
|
||||
|
||||
const mp_obj_property_getter_t wifi_radio_ap_info_obj = MP_PROPERTY_GETTER(wifi_radio_ap_info_obj,
|
||||
MP_PROPERTY_GETTER(wifi_radio_ap_info_obj,
|
||||
(mp_obj_t)&wifi_radio_get_ap_info_obj);
|
||||
|
||||
//| def ping(self, ip: ipaddress.IPv4Address, *, timeout: Optional[float] = 0.5) -> Optional[float]:
|
||||
|
Loading…
Reference in New Issue
Block a user