|
hal
Hardware Abstraction Layer
|
Implementation for the transaction queue. More...
#include "i2c_transaction_queue.h"
Classes | |
| struct | i2c_transaction_queue_t |
| A queue that holds references to the transactions to be processed. More... | |
Functions | |
| i2c_queue_status_t | i2c_transaction_queue_add (hal_i2c_txn_t *txn) |
| Add a transaction to the queue. More... | |
| i2c_queue_status_t | i2c_transaction_queue_get_next (hal_i2c_txn_t **txn) |
| Get the next transaction from the queue. Removes the transaction from the queue. More... | |
| void | i2c_transaction_queue_reset () |
| Resets the queue. More... | |
Implementation for the transaction queue.
Copyright (c) 2025 Cory McKiel. Licensed under the MIT License. See LICENSE file in the project root.
| i2c_queue_status_t i2c_transaction_queue_add | ( | hal_i2c_txn_t * | txn | ) |
Add a transaction to the queue.
| txn | A reference to the transaction to queue. |
| i2c_queue_status_t i2c_transaction_queue_get_next | ( | hal_i2c_txn_t ** | txn | ) |
Get the next transaction from the queue. Removes the transaction from the queue.
| txn | A reference to a handle type for a transaction. |
| void i2c_transaction_queue_reset | ( | ) |
Resets the queue.
It resets all internal variables that manage the queue so it will be "like new".