Functions

uart.h File Reference

UART driver header. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <nfc/nfc-types.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
#include <sys/time.h>

Go to the source code of this file.

Functions

int uart_receive (serial_port sp, byte_t *pbtRx, size_t *pszRxLen)
 Receive data from UART and copy data to pbtRx.
int uart_send (serial_port sp, const byte_t *pbtTx, const size_t szTxLen)
 Send pbtTx content to UART.

Detailed Description

UART driver header.

Definition in file uart.h.


Function Documentation

int uart_receive ( serial_port  sp,
byte_t *  pbtRx,
size_t *  pszRxLen 
)

Receive data from UART and copy data to pbtRx.

Returns:
0 on success, otherwise driver error code

Definition at line 214 of file uart.c.

int uart_send ( serial_port  sp,
const byte_t *  pbtTx,
const size_t  szTxLen 
)

Send pbtTx content to UART.

Returns:
0 on success, otherwise a driver error is returned

Definition at line 273 of file uart.c.