hal
Hardware Abstraction Layer
i2c_transaction_queue_t Struct Reference

A queue that holds references to the transactions to be processed. More...

Collaboration diagram for i2c_transaction_queue_t:

Public Attributes

hal_i2c_txn_ttransactions [I2C_TRANSACTION_QUEUE_SIZE]
 
size_t head
 
size_t tail
 
size_t transaction_count
 

Detailed Description

A queue that holds references to the transactions to be processed.

Implemented as a ring buffer with no data overwrite.

Member Data Documentation

◆ head

size_t i2c_transaction_queue_t::head

head points to either an empty slot (space in queue) or to tail (no space in queue).

◆ tail

size_t i2c_transaction_queue_t::tail

tail points to the next message to be dequeued.

◆ transaction_count

size_t i2c_transaction_queue_t::transaction_count

A current count of the number of transactions in the queue.

◆ transactions

hal_i2c_txn_t* i2c_transaction_queue_t::transactions[I2C_TRANSACTION_QUEUE_SIZE]

Array that holds all the references to transactions.


The documentation for this struct was generated from the following file: