rusEFI
The most advanced open source ECU
|
#include <tunerstudio_io.h>
Public Member Functions | |
UartTsChannel (UARTDriver &driver) | |
void | start (uint32_t baud) override |
void | stop () override |
void | write (const uint8_t *buffer, size_t size, bool isEndOfPacket) override |
size_t | readTimeout (uint8_t *buffer, size_t size, int timeout) override |
![]() | |
SerialTsChannelBase (const char *p_name) | |
![]() | |
TsChannelBase (const char *name) | |
virtual void | flush () |
virtual bool | isConfigured () const |
virtual bool | isReady () const |
size_t | read (uint8_t *buffer, size_t size) |
virtual void | writeCrcPacket (uint8_t responseCode, const uint8_t *buf, size_t size, bool allowLongPackets=false) |
void | sendResponse (ts_response_format_e mode, const uint8_t *buffer, int size, bool allowLongPackets=false) |
void | assertPacketSize (size_t size, bool allowLongPackets) |
uint32_t | writePacketHeader (const uint8_t responseCode, const size_t size) |
void | crcAndWriteBuffer (const uint8_t responseCode, const size_t size) |
void | copyAndWriteSmallCrcPacket (uint8_t responseCode, const uint8_t *buf, size_t size) |
void | writeCrcResponse (uint8_t responseCode) |
Protected Attributes | |
UARTDriver *const | m_driver |
UARTConfig | m_config |
Additional Inherited Members | |
![]() | |
int | bytesIn = 0 |
int | bytesOut = 0 |
char | scratchBuffer [scratchBuffer_SIZE+30] |
page1_s | page1 |
const char * | name |
bool | in_sync = false |
Definition at line 124 of file tunerstudio_io.h.
|
inline |
Definition at line 126 of file tunerstudio_io.h.
Implements TsChannelBase.
Definition at line 73 of file tunerstudio_io_serial.cpp.
|
overridevirtual |
Implements SerialTsChannelBase.
Definition at line 41 of file tunerstudio_io_serial.cpp.
|
overridevirtual |
Reimplemented from TsChannelBase.
Definition at line 64 of file tunerstudio_io_serial.cpp.
|
overridevirtual |
Implements TsChannelBase.
Definition at line 68 of file tunerstudio_io_serial.cpp.
|
protected |
Definition at line 136 of file tunerstudio_io.h.
Referenced by start(), and UartDmaTsChannel::start().
|
protected |
Definition at line 135 of file tunerstudio_io.h.
Referenced by UartDmaTsChannel::copyDataFromDMA(), readTimeout(), start(), UartDmaTsChannel::start(), stop(), and write().