Mercury API - Sample serial transport that does nothing. More...
#include "tm_reader.h"
Go to the source code of this file.
Functions | |
static TMR_Status | s_flush (TMR_SR_SerialTransport *this) |
static TMR_Status | s_open (TMR_SR_SerialTransport *this) |
static TMR_Status | s_receiveBytes (TMR_SR_SerialTransport *this, uint32_t length, uint32_t *messageLength, uint8_t *message, const uint32_t timeoutMs) |
static TMR_Status | s_sendBytes (TMR_SR_SerialTransport *this, uint32_t length, uint8_t *message, const uint32_t timeoutMs) |
static TMR_Status | s_setBaudRate (TMR_SR_SerialTransport *this, uint32_t rate) |
static TMR_Status | s_shutdown (TMR_SR_SerialTransport *this) |
TMR_Status | TMR_SR_SerialTransportDummyInit (TMR_SR_SerialTransport *transport, TMR_SR_SerialPortNativeContext *context, void *other) |
TMR_Status | TMR_SR_SerialTransportNativeInit (TMR_SR_SerialTransport *transport, TMR_SR_SerialPortNativeContext *context, const char *device) |
Mercury API - Sample serial transport that does nothing.
Definition in file serial_transport_dummy.c.
static TMR_Status s_flush | ( | TMR_SR_SerialTransport * | this | ) | [static] |
Definition at line 99 of file serial_transport_dummy.c.
static TMR_Status s_open | ( | TMR_SR_SerialTransport * | this | ) | [static] |
Definition at line 36 of file serial_transport_dummy.c.
static TMR_Status s_receiveBytes | ( | TMR_SR_SerialTransport * | this, |
uint32_t | length, | ||
uint32_t * | messageLength, | ||
uint8_t * | message, | ||
const uint32_t | timeoutMs | ||
) | [static] |
Definition at line 60 of file serial_transport_dummy.c.
static TMR_Status s_sendBytes | ( | TMR_SR_SerialTransport * | this, |
uint32_t | length, | ||
uint8_t * | message, | ||
const uint32_t | timeoutMs | ||
) | [static] |
Definition at line 46 of file serial_transport_dummy.c.
static TMR_Status s_setBaudRate | ( | TMR_SR_SerialTransport * | this, |
uint32_t | rate | ||
) | [static] |
Definition at line 75 of file serial_transport_dummy.c.
static TMR_Status s_shutdown | ( | TMR_SR_SerialTransport * | this | ) | [static] |
Definition at line 88 of file serial_transport_dummy.c.
TMR_Status TMR_SR_SerialTransportDummyInit | ( | TMR_SR_SerialTransport * | transport, |
TMR_SR_SerialPortNativeContext * | context, | ||
void * | other | ||
) |
Definition at line 125 of file serial_transport_dummy.c.
TMR_Status TMR_SR_SerialTransportNativeInit | ( | TMR_SR_SerialTransport * | transport, |
TMR_SR_SerialPortNativeContext * | context, | ||
const char * | device | ||
) |
Initialize a TMR_SR_SerialTransport structure with a given serial device.
transport | The TMR_SR_SerialTransport structure to initialize. |
context | A TMR_SR_SerialPortNativeContext structure for the callbacks to use. |
device | The path or name of the serial device (/dev/ttyS0 , COM1 ) |
Definition at line 154 of file serial_transport_dummy.c.