rusEFI
The most advanced open source ECU
|
This code is a bridge between a serial streaming used by TS and a packet-frame CAN-bus, using the ISO-TP protocol. ISO 15765-2, or ISO-TP (Transport Layer), which is an international standard for sending data packets over a CAN-Bus. https://en.wikipedia.org/wiki/ISO_15765-2
Definition in file serial_can.cpp.
Functions | |
void | canStreamInit (void) |
msg_t | canStreamAddToTxTimeout (size_t *np, const uint8_t *txbuf, sysinterval_t timeout) |
msg_t | canStreamFlushTx (sysinterval_t timeout) |
msg_t | canStreamReceiveTimeout (size_t *np, uint8_t *rxbuf, sysinterval_t timeout) |
Variables | |
static CanStreamer | streamer |
static CanTsListener | listener |
static int | isoTpPacketCounter = 0 |
msg_t canStreamAddToTxTimeout | ( | size_t * | np, |
const uint8_t * | txbuf, | ||
sysinterval_t | timeout | ||
) |
Definition at line 398 of file serial_can.cpp.
msg_t canStreamFlushTx | ( | sysinterval_t | timeout | ) |
void canStreamInit | ( | void | ) |
Definition at line 394 of file serial_can.cpp.
Referenced by startCanConsole().
msg_t canStreamReceiveTimeout | ( | size_t * | np, |
uint8_t * | rxbuf, | ||
sysinterval_t | timeout | ||
) |
|
static |
Definition at line 356 of file serial_can.cpp.
Referenced by CanTsListener::decodeFrame().
|
static |
Definition at line 35 of file serial_can.cpp.
Referenced by CanStreamer::init(), invokeArgIntCallbacks(), invokeIntIntCallbacks(), invokeIntIntVoidCallbacks(), IntListenerArray< MAX_INT_LISTENER_COUNT >::invokeJustArgCallbacks(), CanStreamer::receive(), IntListenerArray< MAX_INT_LISTENER_COUNT >::registerCallback(), and registerCanListener().
|
static |
Definition at line 33 of file serial_can.cpp.
Referenced by canStreamInit().