40 #ifndef BSPACM_PERIPH_UART_H
41 #define BSPACM_PERIPH_UART_H
298 #define BSPACM_PERIPH_UART_FLAG_ONLCR 0x01
422 #include <bspacm/periph/uart_.h>
uint32_t u32
Definition: uart.h:63
unsigned int speed_baud
Definition: uart.h:156
unsigned int flags
Definition: uart.h:95
unsigned int tx_count
Definition: uart.h:109
int iBSPACMperiphUARTflush(hBSPACMperiphUART usp, int fifo_mask)
struct sBSPACMperiphUARToperations sBSPACMperiphUARToperations
int(* hw_transmit)(sBSPACMperiphUARTstate *usp, uint8_t v)
Definition: uart.h:252
#define BSPACM_CORE_DISABLE_INTERRUPT()
Definition: core.h:132
static BSPACM_CORE_INLINE int iBSPACMperiphUARTfifoState(hBSPACMperiphUART usp)
Definition: uart.h:367
const hBSPACMperiphUART hBSPACMdefaultUART
uint8_t rx_parity_errors
Definition: uart.h:120
sBSPACMperiphUARTstate * hBSPACMperiphUART
Definition: uart.h:147
Common header included by all BSPACM leaf headers.
int(* configure)(sBSPACMperiphUARTstate *usp, const sBSPACMperiphUARTconfiguration *cfgp)
Definition: uart.h:241
const struct sBSPACMperiphUARToperations *const ops
Definition: uart.h:70
#define BSPACM_CORE_SAVED_INTERRUPT_STATE(var_)
Definition: core.h:148
void *const uart
Definition: uart.h:57
struct sBSPACMperiphUARTstate sBSPACMperiphUARTstate
uint8_t rx_overrun_errors
Definition: uart.h:127
struct sFIFO *const rx_fifo_ni_
Definition: uart.h:91
uint16_t rx_dropped_errors
Definition: uart.h:114
static BSPACM_CORE_INLINE hBSPACMperiphUART hBSPACMperiphUARTconfigure(hBSPACMperiphUART usp, const sBSPACMperiphUARTconfiguration *cfgp)
Definition: uart.h:312
union sBSPACMperiphUARTstate::@0 devcfg
uint8_t rx_frame_errors
Definition: uart.h:117
#define BSPACM_CORE_INLINE
Definition: core.h:65
const void * ptr
Definition: uart.h:64
int iBSPACMperiphUARTread(hBSPACMperiphUART usp, void *buf, size_t count)
int iBSPACMperiphUARTwrite(hBSPACMperiphUART usp, const void *buf, size_t count)
eBSPACMperiphUARTfifoState
Definition: uart.h:161
unsigned int rx_count
Definition: uart.h:105
struct sFIFO *const tx_fifo_ni_
Definition: uart.h:80
struct sBSPACMperiphUARTconfiguration sBSPACMperiphUARTconfiguration
uint8_t tx_state_
Definition: uart.h:142
int(* fifo_state)(sBSPACMperiphUARTstate *usp)
Definition: uart.h:291
unsigned int peripheral_state_ni
Definition: uart.h:100
void(* hw_txien)(sBSPACMperiphUARTstate *usp, int enablep)
Definition: uart.h:278
uint8_t rx_break_errors
Definition: uart.h:124
#define BSPACM_CORE_REENABLE_INTERRUPT(var_)
Definition: core.h:165