ChibiOS  21.6.0
hal_sio_lld.h File Reference

PLATFORM SIO subsystem low level driver header. More...

Go to the source code of this file.

Macros

#define sio_lld_driver_fields   uint32_t dummy
 Low level fields of the SIO driver structure. More...
 
#define sio_lld_config_fields   uint32_t dummy
 Low level fields of the SIO configuration structure. More...
 
#define sio_lld_is_rx_empty(siop)   false
 Determines the state of the RX FIFO. More...
 
#define sio_lld_is_tx_full(siop)   false
 Determines the state of the TX FIFO. More...
 
#define sio_lld_is_tx_ongoing(siop)   false
 Determines the transmission state. More...
 
PLATFORM configuration options
#define PLATFORM_SIO_USE_SIO1   FALSE
 SIO driver enable switch. More...
 

Typedefs

typedef uint32_t sio_events_mask_t
 Type of a SIO events mask. More...
 

Functions

void sio_lld_init (void)
 Low level SIO driver initialization. More...
 
bool sio_lld_start (SIODriver *siop)
 Configures and activates the SIO peripheral. More...
 
void sio_lld_stop (SIODriver *siop)
 Deactivates the SIO peripheral. More...
 
void sio_lld_start_operation (SIODriver *siop)
 Starts a SIO operation. More...
 
void sio_lld_stop_operation (SIODriver *siop)
 Stops an ongoing SIO operation, if any. More...
 
sio_events_mask_t sio_lld_get_and_clear_events (SIODriver *siop)
 Return the pending SIO events flags. More...
 
size_t sio_lld_read (SIODriver *siop, uint8_t *buffer, size_t n)
 Reads data from the RX FIFO. More...
 
size_t sio_lld_write (SIODriver *siop, const uint8_t *buffer, size_t n)
 Writes data into the TX FIFO. More...
 
msg_t sio_lld_get (SIODriver *siop)
 Returns one frame from the RX FIFO. More...
 
void sio_lld_put (SIODriver *siop, uint_fast16_t data)
 Pushes one frame into the TX FIFO. More...
 
msg_t sio_lld_control (SIODriver *siop, unsigned int operation, void *arg)
 Control operation on a serial port. More...
 

Detailed Description

PLATFORM SIO subsystem low level driver header.

Definition in file hal_sio_lld.h.