ChibiOS  21.6.0
hal_sio.c File Reference

SIO Driver code. More...

#include "hal.h"

Go to the source code of this file.

Functions

void sioInit (void)
 SIO Driver initialization. More...
 
void sioObjectInit (SIODriver *siop)
 Initializes the standard part of a SIODriver structure. More...
 
bool sioStart (SIODriver *siop, const SIOConfig *config)
 Configures and activates the SIO peripheral. More...
 
void sioStop (SIODriver *siop)
 Deactivates the SIO peripheral. More...
 
void sioStartOperation (SIODriver *siop, const SIOOperation *operation)
 Starts a SIO operation. More...
 
void sioStopOperation (SIODriver *siop)
 Stops an ongoing SIO operation, if any. More...
 
sio_events_mask_t sioGetAndClearEvents (SIODriver *siop)
 Return the pending SIO events flags. More...
 
size_t sioAsyncRead (SIODriver *siop, uint8_t *buffer, size_t n)
 Reads data from the RX FIFO. More...
 
size_t sioAsyncWrite (SIODriver *siop, const uint8_t *buffer, size_t n)
 Writes data into the TX FIFO. More...
 
msg_t sioSynchronizeRX (SIODriver *siop, sysinterval_t timeout)
 Synchronizes with RX FIFO data availability. More...
 
msg_t sioSynchronizeTX (SIODriver *siop, sysinterval_t timeout)
 Synchronizes with TX FIFO space availability. More...
 
msg_t sioSynchronizeTXEnd (SIODriver *siop, sysinterval_t timeout)
 Synchronizes with TX completion. More...
 

Detailed Description

SIO Driver code.

Definition in file hal_sio.c.