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

Hardware communication layer. More...

Files

file  pios_rcvr.h
 RCVR layer functions header.
 
file  pios_rcvr_priv.h
 USART private definitions.
 

Data Structures

struct  pios_rcvr_driver
 

Enumerations

enum  PIOS_RCVR_errors { PIOS_RCVR_TIMEOUT = -1, PIOS_RCVR_INVALID = -2, PIOS_RCVR_NODRIVER = -3 }
 

Functions

int32_t PIOS_RCVR_Read (uintptr_t rcvr_id, uint8_t channel)
 
bool PIOS_RCVR_WaitActivity (uint32_t timeout_ms)
 
void PIOS_RCVR_Active ()
 
void PIOS_RCVR_ActiveFromISR ()
 
uintptr_t PIOS_RCVR_GetLowerDevice (uintptr_t rcvr_id)
 
int32_t PIOS_RCVR_Init (uintptr_t *rcvr_id, const struct pios_rcvr_driver *driver, const uintptr_t lower_id)
 
void PIOS_RCVR_IRQ_Handler (uintptr_t rcvr_id)
 

Variables

uint32_t pios_rcvr_max_channel
 

Detailed Description

Hardware communication layer.

PIOS interface for RCVR drivers.

Enumeration Type Documentation

Define error codes for PIOS_RCVR_Get

Enumerator
PIOS_RCVR_TIMEOUT 

Indicates that a failsafe condition or missing receiver detected for that channel

PIOS_RCVR_INVALID 

Channel is invalid for this driver (usually out of range supported)

PIOS_RCVR_NODRIVER 

Indicates that the driver for this channel has not been initialized

Definition at line 46 of file pios_rcvr.h.

Function Documentation

void PIOS_RCVR_Active ( )
void PIOS_RCVR_ActiveFromISR ( )
uintptr_t PIOS_RCVR_GetLowerDevice ( uintptr_t  rcvr_id)
int32_t PIOS_RCVR_Init ( uintptr_t *  rcvr_id,
const struct pios_rcvr_driver driver,
const uintptr_t  lower_id 
)
void PIOS_RCVR_IRQ_Handler ( uintptr_t  rcvr_id)
int32_t PIOS_RCVR_Read ( uintptr_t  rcvr_id,
uint8_t  channel 
)
bool PIOS_RCVR_WaitActivity ( uint32_t  timeout_ms)

Variable Documentation

uint32_t pios_rcvr_max_channel