| | |
| | | #include "Spi.h" |
| | | #include "deca_device_api.h" |
| | | |
| | | void Spi_Init(void) |
| | | { |
| | |
| | | * Takes two separate byte buffers for write header and write data |
| | | * returns 0 for success, or -1 for error |
| | | */ |
| | | int writetospi_serial |
| | | int writetospi |
| | | ( |
| | | uint16_t headerLength, |
| | | const uint8_t *headerBuffer, |
| | | uint32_t bodylength, |
| | | const uint8_t *bodyBuffer |
| | | uint16 headerLength, |
| | | const uint8 *headerBuffer, |
| | | uint32 bodylength, |
| | | const uint8 *bodyBuffer |
| | | ) |
| | | { |
| | | |
| | |
| | | * returns the offset into read buffer where first byte of read data may be found, |
| | | * or returns -1 if there was an error |
| | | */ |
| | | int readfromspi_serial |
| | | int readfromspi |
| | | ( |
| | | uint16_t headerLength, |
| | | const uint8_t *headerBuffer, |
| | | uint32_t readlength, |
| | | uint8_t *readBuffer |
| | | uint16 headerLength, |
| | | const uint8 *headerBuffer, |
| | | uint32 readlength, |
| | | uint8 *readBuffer |
| | | ) |
| | | { |
| | | |