SEcube
SEcube Open Source Library - Device
Data Fields
SE3_COMM_STATUS_ Struct Reference

structure holding host-device communication status and buffers More...

#include <se3c0.h>

Data Fields

bool magic_ready
 magic written flag
 
uint32_t magic_bmap
 bit map of written magic sectors
 
uint32_t blocks [SE3_COMM_N]
 map of blocks
 
uint32_t block_guess
 guess for next block that will be accessed
 
bool locked
 prevent magic initialization
 
volatile bool req_ready
 request ready flag
 
uint32_t req_bmap
 map of received request blocks
 
uint8_t * req_data
 received data buffer
 
uint8_t * req_hdr
 received header buffer
 
volatile bool resp_ready
 response ready flag
 
uint32_t resp_bmap
 map of sent response blocks
 
uint8_t * resp_data
 buffer for data to be sent
 
uint8_t * resp_hdr
 buffer for header to be sent
 

Detailed Description

structure holding host-device communication status and buffers

req_ready and resp_ready must be volatile, otherwise -O3 optimization will not work.


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