diff options
| author | Kevin O'Connor <kevin@koconnor.net> | 2022-11-19 10:30:11 -0500 |
|---|---|---|
| committer | Kevin O'Connor <kevin@koconnor.net> | 2022-11-19 10:31:08 -0500 |
| commit | cfb633a0ecb21e855781c106fa37a214f3b9a0d3 (patch) | |
| tree | bb24d7251a811e57c758ec32e791a1494c1fd7a4 /lib/can2040/can2040.h | |
| parent | 8977c4e764688917689f1c2ac427d4cddcbe0515 (diff) | |
| download | kutter-cfb633a0ecb21e855781c106fa37a214f3b9a0d3.tar.gz kutter-cfb633a0ecb21e855781c106fa37a214f3b9a0d3.tar.xz kutter-cfb633a0ecb21e855781c106fa37a214f3b9a0d3.zip | |
lib: Update to latest can2040 code
Minor comment change to unstuf_pull_bits()
Introduce unstuf_get_raw() helper function
Move crc stuffed bit calculation to data_state_go_crc()
Restore stuffed_bits state on missing ack
Use a single pio_irq_set() function
Reschedule tx if previous tx unexpectedly finished transmit
Simplify report_state handling
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/can2040/can2040.h')
| -rw-r--r-- | lib/can2040/can2040.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/can2040/can2040.h b/lib/can2040/can2040.h index 26a49ebc..fc0bdd62 100644 --- a/lib/can2040/can2040.h +++ b/lib/can2040/can2040.h @@ -63,12 +63,11 @@ struct can2040 { // Input data state uint32_t parse_state; - uint32_t parse_crc; + uint32_t parse_crc, parse_crc_bits, parse_crc_pos; struct can2040_msg parse_msg; // Reporting uint32_t report_state; - uint32_t report_eof_key; // Transmits uint32_t tx_state; |
