ChibiOS/HAL  6.1.0
hal_queues.c File Reference

I/O Queues code. More...

#include <string.h>
#include "hal.h"

Go to the source code of this file.

Functions

static size_t iq_read (input_queue_t *iqp, uint8_t *bp, size_t n)
 Non-blocking input queue read. More...
 
static size_t oq_write (output_queue_t *oqp, const uint8_t *bp, size_t n)
 Non-blocking output queue write. More...
 
void iqObjectInit (input_queue_t *iqp, uint8_t *bp, size_t size, qnotify_t infy, void *link)
 Initializes an input queue. More...
 
void iqResetI (input_queue_t *iqp)
 Resets an input queue. More...
 
msg_t iqPutI (input_queue_t *iqp, uint8_t b)
 Input queue write. More...
 
msg_t iqGetI (input_queue_t *iqp)
 Input queue non-blocking read. More...
 
msg_t iqGetTimeout (input_queue_t *iqp, sysinterval_t timeout)
 Input queue read with timeout. More...
 
size_t iqReadI (input_queue_t *iqp, uint8_t *bp, size_t n)
 Input queue non-blocking read. More...
 
size_t iqReadTimeout (input_queue_t *iqp, uint8_t *bp, size_t n, sysinterval_t timeout)
 Input queue read with timeout. More...
 
void oqObjectInit (output_queue_t *oqp, uint8_t *bp, size_t size, qnotify_t onfy, void *link)
 Initializes an output queue. More...
 
void oqResetI (output_queue_t *oqp)
 Resets an output queue. More...
 
msg_t oqPutI (output_queue_t *oqp, uint8_t b)
 Output queue non-blocking write. More...
 
msg_t oqPutTimeout (output_queue_t *oqp, uint8_t b, sysinterval_t timeout)
 Output queue write with timeout. More...
 
msg_t oqGetI (output_queue_t *oqp)
 Output queue read. More...
 
size_t oqWriteI (output_queue_t *oqp, const uint8_t *bp, size_t n)
 Output queue non-blocking write. More...
 
size_t oqWriteTimeout (output_queue_t *oqp, const uint8_t *bp, size_t n, sysinterval_t timeout)
 Output queue write with timeout. More...
 

Detailed Description

I/O Queues code.

Definition in file hal_queues.c.