dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Data Structures

struct  pios_ser_dev
 

Functions

static void PIOS_SERIAL_RegisterRxCallback (uintptr_t udp_id, pios_com_callback rx_in_cb, uintptr_t context)
 
static void PIOS_SERIAL_RegisterTxCallback (uintptr_t udp_id, pios_com_callback tx_out_cb, uintptr_t context)
 
static void PIOS_SERIAL_TxStart (uintptr_t udp_id, uint16_t tx_bytes_avail)
 
static void PIOS_SERIAL_RxStart (uintptr_t udp_id, uint16_t rx_bytes_avail)
 
static pios_ser_devfind_ser_dev_by_id (uintptr_t serial)
 
static void rx_do_cb (pios_ser_dev *ser_dev, uint8_t *incoming_buffer, int len)
 
static void PIOS_SERIAL_RxTask (void *ser_dev_n)
 
int32_t PIOS_SERIAL_InitFromFd (uintptr_t *serial_id, int readfd, int writefd, bool dont_touch_line)
 
int32_t PIOS_SERIAL_Init (uintptr_t *serial_id, const char *path)
 

Variables

const struct pios_com_driver pios_serial_com_driver
 

Detailed Description

Function Documentation

static pios_ser_dev* find_ser_dev_by_id ( uintptr_t  serial)
static

Definition at line 90 of file pios_serial.c.

int32_t PIOS_SERIAL_Init ( uintptr_t *  serial_id,
const char *  path 
)

Definition at line 182 of file pios_serial.c.

int32_t PIOS_SERIAL_InitFromFd ( uintptr_t *  serial_id,
int  readfd,
int  writefd,
bool  dont_touch_line 
)

Open SERIAL connection

Definition at line 151 of file pios_serial.c.

static void PIOS_SERIAL_RegisterRxCallback ( uintptr_t  udp_id,
pios_com_callback  rx_in_cb,
uintptr_t  context 
)
static

Definition at line 375 of file pios_serial.c.

static void PIOS_SERIAL_RegisterTxCallback ( uintptr_t  udp_id,
pios_com_callback  tx_out_cb,
uintptr_t  context 
)
static

Definition at line 385 of file pios_serial.c.

static void PIOS_SERIAL_RxStart ( uintptr_t  udp_id,
uint16_t  rx_bytes_avail 
)
static

Definition at line 340 of file pios_serial.c.

static void PIOS_SERIAL_RxTask ( void *  ser_dev_n)
static

RxTask

Definition at line 111 of file pios_serial.c.

static void PIOS_SERIAL_TxStart ( uintptr_t  udp_id,
uint16_t  tx_bytes_avail 
)
static

we send everything directly whenever notified of data to send

Definition at line 344 of file pios_serial.c.

static void rx_do_cb ( pios_ser_dev ser_dev,
uint8_t *  incoming_buffer,
int  len 
)
static

Definition at line 95 of file pios_serial.c.

Variable Documentation

const struct pios_com_driver pios_serial_com_driver
Initial value:
= {
.tx_start = PIOS_SERIAL_TxStart,
.rx_start = PIOS_SERIAL_RxStart,
}
static void PIOS_SERIAL_RegisterRxCallback(uintptr_t udp_id, pios_com_callback rx_in_cb, uintptr_t context)
Definition: pios_serial.c:375
static void PIOS_SERIAL_TxStart(uintptr_t udp_id, uint16_t tx_bytes_avail)
Definition: pios_serial.c:344
static void PIOS_SERIAL_RegisterTxCallback(uintptr_t udp_id, pios_com_callback tx_out_cb, uintptr_t context)
Definition: pios_serial.c:385
static void PIOS_SERIAL_RxStart(uintptr_t udp_id, uint16_t rx_bytes_avail)
Definition: pios_serial.c:340

Definition at line 80 of file pios_serial.c.