Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::embedded::SpiFrame< MaxRxSize > Struct Template Reference

Fixed-capacity SPI transfer frame structure for zero-heap ISR and DMA ingestion. More...

#include <SpiAdapter.hpp>

+ Collaboration diagram for corium::embedded::SpiFrame< MaxRxSize >:

Public Member Functions

std::span< const uint8_t > payload () const noexcept
 

Public Attributes

uint8_t chipSelectId {0}
 Chip-select / device channel identifier.
 
uint16_t length {0}
 Number of valid received bytes.
 
std::array< uint8_t, MaxRxSize > rxData {}
 Static receive buffer.
 
uint8_t status {0}
 Hardware status flags (0: Success, 1: Error/Timeout)
 

Detailed Description

template<size_t MaxRxSize = 32>
struct corium::embedded::SpiFrame< MaxRxSize >

Fixed-capacity SPI transfer frame structure for zero-heap ISR and DMA ingestion.

Template Parameters
MaxRxSizeMaximum receive buffer size in bytes (default: 32).

Member Function Documentation

◆ payload()

template<size_t MaxRxSize = 32>
std::span< const uint8_t > corium::embedded::SpiFrame< MaxRxSize >::payload ( ) const
inlinenoexcept

Member Data Documentation

◆ chipSelectId

template<size_t MaxRxSize = 32>
uint8_t corium::embedded::SpiFrame< MaxRxSize >::chipSelectId {0}

Chip-select / device channel identifier.

◆ length

template<size_t MaxRxSize = 32>
uint16_t corium::embedded::SpiFrame< MaxRxSize >::length {0}

Number of valid received bytes.

◆ rxData

template<size_t MaxRxSize = 32>
std::array<uint8_t, MaxRxSize> corium::embedded::SpiFrame< MaxRxSize >::rxData {}

Static receive buffer.

◆ status

template<size_t MaxRxSize = 32>
uint8_t corium::embedded::SpiFrame< MaxRxSize >::status {0}

Hardware status flags (0: Success, 1: Error/Timeout)


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