libnfc
1.4.2
|
POSIX UART driver. More...
#include <sys/select.h>
#include <sys/param.h>
#include <termios.h>
Go to the source code of this file.
Defines | |
#define | UART_BAUDRATE_T0_BYTE_DURATION(X) ((1000000 * 10)/ X) |
Functions | |
int | uart_receive (serial_port sp, byte_t *pbtRx, size_t *pszRx) |
Receive data from UART and copy data to pbtRx. | |
int | uart_send (serial_port sp, const byte_t *pbtTx, const size_t szTx) |
Send pbtTx content to UART. |
POSIX UART driver.
Definition in file uart_posix.c.
#define UART_BAUDRATE_T0_BYTE_DURATION | ( | X | ) | ((1000000 * 10)/ X) |
In 8N1 mode, byte-rate = baud-rate / 10
Definition at line 99 of file uart_posix.c.
int uart_receive | ( | serial_port | sp, |
byte_t * | pbtRx, | ||
size_t * | pszRx | ||
) |
Receive data from UART and copy data to pbtRx.
Definition at line 212 of file uart_posix.c.
int uart_send | ( | serial_port | sp, |
const byte_t * | pbtTx, | ||
const size_t | szTx | ||
) |
Send pbtTx content to UART.
Definition at line 279 of file uart_posix.c.