rusEFI
The most advanced open source ECU
|
#include <serial_can.h>
Public Member Functions | |
CanStreamerState (ICanStreamer *s) | |
int | sendFrame (const IsoTpFrameHeader &header, const uint8_t *data, int num, can_sysinterval_t timeout) |
int | receiveFrame (CANRxFrame *rxmsg, uint8_t *buf, int num, can_sysinterval_t timeout) |
int | getDataFromFifo (uint8_t *rxbuf, size_t &numBytes) |
int | sendDataTimeout (const uint8_t *txbuf, int numBytes, can_sysinterval_t timeout) |
can_msg_t | streamAddToTxTimeout (size_t *np, const uint8_t *txbuf, can_sysinterval_t timeout) |
can_msg_t | streamFlushTx (can_sysinterval_t timeout) |
can_msg_t | streamReceiveTimeout (size_t *np, uint8_t *rxbuf, can_sysinterval_t timeout) |
Data Fields | |
fifo_buffer< uint8_t, CAN_FIFO_BUF_SIZE > | rxFifoBuf |
fifo_buffer< uint8_t, CAN_FIFO_BUF_SIZE > | txFifoBuf |
uint8_t | tmpRxBuf [13] |
int | waitingForNumBytes = 0 |
int | waitingForFrameIndex = 0 |
ICanStreamer * | streamer |
Definition at line 64 of file serial_can.h.
|
inline |
Definition at line 81 of file serial_can.h.
int CanStreamerState::getDataFromFifo | ( | uint8_t * | rxbuf, |
size_t & | numBytes | ||
) |
Definition at line 262 of file serial_can.cpp.
Referenced by streamReceiveTimeout().
int CanStreamerState::receiveFrame | ( | CANRxFrame * | rxmsg, |
uint8_t * | buf, | ||
int | num, | ||
can_sysinterval_t | timeout | ||
) |
Definition at line 92 of file serial_can.cpp.
Referenced by sendDataTimeout(), and streamReceiveTimeout().
int CanStreamerState::sendDataTimeout | ( | const uint8_t * | txbuf, |
int | numBytes, | ||
can_sysinterval_t | timeout | ||
) |
Definition at line 177 of file serial_can.cpp.
Referenced by streamAddToTxTimeout(), and streamFlushTx().
int CanStreamerState::sendFrame | ( | const IsoTpFrameHeader & | header, |
const uint8_t * | data, | ||
int | num, | ||
can_sysinterval_t | timeout | ||
) |
Definition at line 40 of file serial_can.cpp.
Referenced by receiveFrame(), and sendDataTimeout().
can_msg_t CanStreamerState::streamAddToTxTimeout | ( | size_t * | np, |
const uint8_t * | txbuf, | ||
can_sysinterval_t | timeout | ||
) |
Definition at line 275 of file serial_can.cpp.
can_msg_t CanStreamerState::streamFlushTx | ( | can_sysinterval_t | timeout | ) |
Definition at line 315 of file serial_can.cpp.
can_msg_t CanStreamerState::streamReceiveTimeout | ( | size_t * | np, |
uint8_t * | rxbuf, | ||
can_sysinterval_t | timeout | ||
) |
Definition at line 325 of file serial_can.cpp.
fifo_buffer<uint8_t, CAN_FIFO_BUF_SIZE> CanStreamerState::rxFifoBuf |
Definition at line 66 of file serial_can.h.
Referenced by getDataFromFifo(), and receiveFrame().
ICanStreamer* CanStreamerState::streamer |
Definition at line 78 of file serial_can.h.
Referenced by sendDataTimeout(), sendFrame(), and streamReceiveTimeout().
uint8_t CanStreamerState::tmpRxBuf[13] |
Definition at line 71 of file serial_can.h.
Referenced by receiveFrame().
fifo_buffer<uint8_t, CAN_FIFO_BUF_SIZE> CanStreamerState::txFifoBuf |
Definition at line 67 of file serial_can.h.
Referenced by streamAddToTxTimeout(), and streamFlushTx().
int CanStreamerState::waitingForFrameIndex = 0 |
Definition at line 76 of file serial_can.h.
Referenced by receiveFrame().
int CanStreamerState::waitingForNumBytes = 0 |
Definition at line 75 of file serial_can.h.
Referenced by receiveFrame().