dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_serial.c File Reference

SERIAL communications interface. More...

#include "pios.h"
#include <pios_serial_priv.h>
#include "pios_thread.h"
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>

Go to the source code of this file.

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

SERIAL communications interface.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
Tau Labs, http://taulabs.org, Copyright (C) 2014
dRonin, http://dRonin.org/, Copyright (C) 2016
See Also
The GNU Public License (GPL) Version 3

Definition in file pios_serial.c.