Support Functions

QcaFrmCreateHeader

uint32_t QcaFrmCreateHeader (uint8_t *  buffer,
 uint16_t  length);

Encode buffer with the required SPI header and overall frame length.

QcaFrmCreateFooter

uint32_t QcaFrmCreateFooter (uint8_t *  buffer);

Encode buffer with the required SPI footer.

QcaFrmFsmInit

void QcaFrmFsmInit (QcaFrmHdl * frmHdl);

Initialize the state machine used to decode the incoming QCA7000 byte stream.

QcaFrmFsmDecode

uint32_t QcaFrmFsmDecode (QcaFrmHdl *  frmHdl,
 uint8_t *  buffer,
 uint16_t  length,
 uint8_t  bytevalue);

Feeds incoming bytes into the state machine and breaks the stream into individual frames. Frames are passed to the Linux kernel.

0