Functions
serial_transport_dummy.c File Reference

Mercury API - Sample serial transport that does nothing. More...

#include "tm_reader.h"
Include dependency graph for serial_transport_dummy.c:

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)

Detailed Description

Mercury API - Sample serial transport that does nothing.

Author:
Nathan Williams
Date:
2/24/2010

Definition in file serial_transport_dummy.c.


Function Documentation

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.

Parameters:
transportThe TMR_SR_SerialTransport structure to initialize.
contextA TMR_SR_SerialPortNativeContext structure for the callbacks to use.
deviceThe path or name of the serial device (/dev/ttyS0, COM1)

Definition at line 154 of file serial_transport_dummy.c.



thingmagic_rfid
Author(s): Brian Bingham
autogenerated on Thu May 16 2019 03:01:25