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

COM layer functions header. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  pios_com_driver
 

Typedefs

typedef uint16_t(* pios_com_callback )(uintptr_t context, uint8_t *buf, uint16_t buf_len, uint16_t *headroom, bool *task_woken)
 

Functions

uintptr_t PIOS_COM_GetDriverCtx (uintptr_t com_id)
 
int32_t PIOS_COM_ChangeBaud (uintptr_t com_id, uint32_t baud)
 
int32_t PIOS_COM_SendCharNonBlocking (uintptr_t com_id, char c)
 
int32_t PIOS_COM_SendChar (uintptr_t com_id, char c)
 
int32_t PIOS_COM_SendBufferNonBlocking (uintptr_t com_id, const uint8_t *buffer, uint16_t len)
 
int32_t PIOS_COM_SendBufferStallTimeout (uintptr_t com_id, const uint8_t *buffer, uint16_t len, uint32_t max_ms)
 
int32_t PIOS_COM_SendBuffer (uintptr_t com_id, const uint8_t *buffer, uint16_t len)
 
int32_t PIOS_COM_SendStringNonBlocking (uintptr_t com_id, const char *str)
 
int32_t PIOS_COM_SendString (uintptr_t com_id, const char *str)
 
int32_t PIOS_COM_SendFormattedStringNonBlocking (uintptr_t com_id, const char *format,...)
 
int32_t PIOS_COM_SendFormattedString (uintptr_t com_id, const char *format,...)
 
uint16_t PIOS_COM_ReceiveBuffer (uintptr_t com_id, uint8_t *buf, uint16_t buf_len, uint32_t timeout_ms)
 
bool PIOS_COM_Available (uintptr_t com_id)
 
uint16_t PIOS_COM_GetNumReceiveBytesPending (uintptr_t com_id)
 

Detailed Description

COM layer functions header.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
See Also
The GNU Public License (GPL) Version 3

Definition in file pios_com.h.