Support Functions
Prev | Chapter 8. Serial Drivers | Next

## Support Functions

### QcaFrmCreateHeader

`uint32_t QcaFrmCreateHeader(` | buffer, |
| length`)`; |

`uint8_t * buffer`;
`uint16_t length`;

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

### QcaFrmCreateFooter

`uint32_t QcaFrmCreateFooter(` | buffer`)`; |

`uint8_t * buffer`;

Encode buffer with the required SPI footer.

### QcaFrmFsmInit

`void QcaFrmFsmInit(` | frmHdl`)`; |

`QcaFrmHdl * frmHdl`;

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

### QcaFrmFsmDecode

`uint32_t QcaFrmFsmDecode(` | frmHdl, |
| buffer, |
| length, |
| bytevalue`)`; |

`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.

Prev | Up | Next
DMA Functions | Home | Kernel Functions