@@ -171,72 +171,6 @@ STATIC const mp_obj_property_t canio_can_receive_error_count_obj = {
171
171
(mp_obj_t )mp_const_none },
172
172
};
173
173
174
- //| error_warning_state_count: int
175
- //| """The number of times the controller enterted the Error Warning
176
- //| state (read-only). This number wraps around to 0 after an
177
- //| implementation-defined number of errors.
178
- //|
179
- //| Not all implementations support this property. If the property
180
- //| is unsupported, AttributeError will be raised."""
181
- //|
182
- STATIC mp_obj_t canio_can_error_warning_state_count_get (mp_obj_t self_in ) {
183
- canio_can_obj_t * self = MP_OBJ_TO_PTR (self_in );
184
- common_hal_canio_can_check_for_deinit (self );
185
- return MP_OBJ_NEW_SMALL_INT (common_hal_canio_can_error_warning_state_count_get (self ));
186
- }
187
- MP_DEFINE_CONST_FUN_OBJ_1 (canio_can_error_warning_state_count_get_obj , canio_can_error_warning_state_count_get );
188
-
189
- STATIC const mp_obj_property_t canio_can_error_warning_state_count_obj = {
190
- .base .type = & mp_type_property ,
191
- .proxy = {(mp_obj_t )& canio_can_error_warning_state_count_get_obj ,
192
- (mp_obj_t )mp_const_none ,
193
- (mp_obj_t )mp_const_none },
194
- };
195
-
196
- //| error_passive_state_count: int
197
- //| """The number of times the controller enterted the Error Passive
198
- //| state (read-only). This number wraps around to 0 after an
199
- //| implementation-defined number of errors.
200
- //|
201
- //| Not all implementations support this property. If the property
202
- //| is unsupported, AttributeError will be raised."""
203
- //|
204
- STATIC mp_obj_t canio_can_error_passive_state_count_get (mp_obj_t self_in ) {
205
- canio_can_obj_t * self = MP_OBJ_TO_PTR (self_in );
206
- common_hal_canio_can_check_for_deinit (self );
207
- return MP_OBJ_NEW_SMALL_INT (common_hal_canio_can_error_passive_state_count_get (self ));
208
- }
209
- MP_DEFINE_CONST_FUN_OBJ_1 (canio_can_error_passive_state_count_get_obj , canio_can_error_passive_state_count_get );
210
-
211
- STATIC const mp_obj_property_t canio_can_error_passive_state_count_obj = {
212
- .base .type = & mp_type_property ,
213
- .proxy = {(mp_obj_t )& canio_can_error_passive_state_count_get_obj ,
214
- (mp_obj_t )mp_const_none ,
215
- (mp_obj_t )mp_const_none },
216
- };
217
-
218
- //| bus_off_state_count: int
219
- //| """The number of times the controller enterted the Bus Off state
220
- //| (read-only). This number wraps around to 0 after an
221
- //| implementation-defined number of errors.
222
- //|
223
- //| Not all implementations support this property. If the property
224
- //| is unsupported, AttributeError will be raised."""
225
- //|
226
- STATIC mp_obj_t canio_can_bus_off_state_count_get (mp_obj_t self_in ) {
227
- canio_can_obj_t * self = MP_OBJ_TO_PTR (self_in );
228
- common_hal_canio_can_check_for_deinit (self );
229
- return MP_OBJ_NEW_SMALL_INT (common_hal_canio_can_bus_off_state_count_get (self ));
230
- }
231
- MP_DEFINE_CONST_FUN_OBJ_1 (canio_can_bus_off_state_count_get_obj , canio_can_bus_off_state_count_get );
232
-
233
- STATIC const mp_obj_property_t canio_can_bus_off_state_count_obj = {
234
- .base .type = & mp_type_property ,
235
- .proxy = {(mp_obj_t )& canio_can_bus_off_state_count_get_obj ,
236
- (mp_obj_t )mp_const_none ,
237
- (mp_obj_t )mp_const_none },
238
- };
239
-
240
174
//| state: State
241
175
//| """The current state of the bus."""
242
176
STATIC mp_obj_t canio_can_state_get (mp_obj_t self_in ) {
@@ -414,10 +348,7 @@ STATIC const mp_rom_map_elem_t canio_can_locals_dict_table[] = {
414
348
{ MP_ROM_QSTR (MP_QSTR___exit__ ), MP_ROM_PTR (& canio_can_exit_obj ) },
415
349
{ MP_ROM_QSTR (MP_QSTR_auto_restart ), MP_ROM_PTR (& canio_can_auto_restart_obj ) },
416
350
{ MP_ROM_QSTR (MP_QSTR_baudrate ), MP_ROM_PTR (& canio_can_baudrate_obj ) },
417
- { MP_ROM_QSTR (MP_QSTR_bus_off_state_count ), MP_ROM_PTR (& canio_can_bus_off_state_count_obj ) },
418
351
{ MP_ROM_QSTR (MP_QSTR_deinit ), MP_ROM_PTR (& canio_can_deinit_obj ) },
419
- { MP_ROM_QSTR (MP_QSTR_error_passive_state_count ), MP_ROM_PTR (& canio_can_error_passive_state_count_obj ) },
420
- { MP_ROM_QSTR (MP_QSTR_error_warning_state_count ), MP_ROM_PTR (& canio_can_error_warning_state_count_obj ) },
421
352
{ MP_ROM_QSTR (MP_QSTR_listen ), MP_ROM_PTR (& canio_can_listen_obj ) },
422
353
{ MP_ROM_QSTR (MP_QSTR_loopback ), MP_ROM_PTR (& canio_can_loopback_obj ) },
423
354
{ MP_ROM_QSTR (MP_QSTR_receive_error_count ), MP_ROM_PTR (& canio_can_receive_error_count_obj ) },
0 commit comments