Commit Graph

30 Commits

Author SHA1 Message Date
Scott Shawcroft 7e55905d95
Fix up onewireio docs and other notes
Not all of the notes were marked correctly.
2021-08-12 11:15:04 -07:00
Jeff Epler 52540a9830 Rename EXTENDED_FIELDS -> MP_TYPE_EXTENDED_FIELDS 2021-07-12 06:57:59 -05:00
Jeff Epler 7302bc09a7 rename the type flag to EXTENDED for consistency 2021-07-09 14:59:37 -05:00
Jeff Epler d37f8a1a5a milestone: a selection of builds succeed 2021-07-06 10:57:44 -05:00
Scott Shawcroft 3fda0c0a1b
Fix board builds and use MP_ERROR_TEXT in py and extmod 2021-05-05 17:51:52 -07:00
microDev a52eb88031
run code formatting script 2021-03-15 19:27:36 +05:30
sw23 ad166ca479 Fixing make stub warnings and mypy issuesmak 2020-10-29 20:15:34 -04:00
Jeff Epler c9f7df3bab canio: Give implementation-specific limits for CAN.Listen 2020-10-26 10:06:49 -05:00
Jeff Epler 88cbf772df canio.CAN: clarify read-only status of several properties 2020-09-29 20:13:52 -05:00
Jeff Epler d79f4e2662 canio: doc improvement -- don't needlessly call out deinit behavior 2020-09-29 14:32:27 -05:00
Jeff Epler 611f81ac1a canio: actually drop the _error_count properties
thanks @tannewt
2020-09-29 14:25:53 -05:00
Jeff Epler 1bea099eb2 Allow the _state_count properties to be unimplemented
This is the case on the SPI implementations MCP2515 and MCP2518.
2020-09-29 14:05:50 -05:00
Jeff Epler 03bd968450 more doc improvements 2020-09-28 19:56:19 -05:00
Jeff Epler 979ec3a458 can: RemoteTransmissionRequest: remove duplicate docstrings 2020-09-28 19:47:06 -05:00
Jeff Epler 04e434a7ce canio: remove stray remote_transmission_request method declaration 2020-09-28 17:22:02 -05:00
Jeff Epler f4e36fc7f6 CAN: Use mp_obj_t insteaed of canio_message_obj_t, get rid of rtr field 2020-09-28 17:22:00 -05:00
Jeff Epler 13493730a1 canio: CAN.Match: improve how an unspecified `mask` is implemented
0 should actually indicate a "match everything" filter which you otherwise
couldn't indicate with any single Match object, and an
all-address-bits-set number should indicate a "match single address"
filter.  Use an optional/default None argument to do the job.
2020-09-28 17:22:00 -05:00
Jeff Epler 4f7f1e8106 canio: CAN.listen: rename argument to 'matches', reflecting that it is a sequence 2020-09-28 17:22:00 -05:00
Jeff Epler a4cc3ad6cb canio: RemoteTransmissionRequest: Split implementation, keep one structure
This already begins obscuring things, because now there are two sets of
shared-module functions for manipulating the same structure, e.g.,
common_hal_canio_remote_transmission_request_get_id and
common_hal_canio_message_get_id
2020-09-28 17:22:00 -05:00
Jeff Epler ea2f5b6396 canio: Correct type annotations of CAN.send, Listener.receive 2020-09-28 17:22:00 -05:00
Jeff Epler f4fd5bbfc4 canio: docs: fix how we refer to 'the listen method' 2020-09-28 17:22:00 -05:00
Jeff Epler 8d45be1cd9 canio: Split RemoteTransmissionRequest to its own class
It reuses most of canio.Message's implementation, and structure
2020-09-28 17:22:00 -05:00
Jeff Epler 48bda589b8 Listerner: read -> receive, drop readinto
This prepares for creating a separate RemoteTransmissionRequest class
2020-09-28 17:22:00 -05:00
Jeff Epler 79ca430ddf Match: address -> id 2020-09-28 17:22:00 -05:00
Jeff Epler 8b82c239b8 canio: doc improvements 2020-09-28 17:22:00 -05:00
Jeff Epler 82f37c9252 canio: fix read(), iterable bindings 2020-09-22 10:28:25 -05:00
Jeff Epler 9fd9cf1138 canio: fix bugs in shared-bindings 2020-09-22 09:36:47 -05:00
Jeff Epler 10245c0ff8 canio: a few more stray _canios 2020-09-21 17:04:30 -05:00
Jeff Epler a8147c125c Fix unintentional cross references 2020-09-21 16:47:28 -05:00
Jeff Epler 4869dbdc67 canio: rename from _canio
This reflects our belief that the API is stable enough to avoid incompatible changes during 6.x.
2020-09-21 16:44:26 -05:00