foxBMS
1.0.0
The foxBMS Battery Management System API Documentation
|
Functions in this group must be implemented by the user. More...
Functions | |
fs8x_status_t | MCU_SPI_TransferData (SPI_INTERFACE_CONFIG_s *pSpiInterface, uint8_t *txFrame, uint16_t frameLengthBytes, uint8_t *rxFrame) |
This function transfers single frame through blocking SPI communication in both directions. MCU specific. More... | |
Functions in this group must be implemented by the user.
fs8x_status_t MCU_SPI_TransferData | ( | SPI_INTERFACE_CONFIG_s * | pSpiInterface, |
uint8_t * | txFrame, | ||
uint16_t | frameLengthBytes, | ||
uint8_t * | rxFrame | ||
) |
This function transfers single frame through blocking SPI communication in both directions. MCU specific.
This function must be implemented if SPI communication is used. The txFrame must be sent to the SPI bus from the last byte to the first (e.g. txFrame[0] will be sent last). The FS8x driver expects incoming data in reversed order, e.g. rxFrame[0] = CRC, rxFrame[1] = LSB ...
[in,out] | pSpiInterface | SPI communication interface config |
[in] | txFrame | Frame to be send. |
[in] | frameLengthBytes | Bytes Length of the frame in bytes. |
[out] | rxFrame | Received frame. |
Definition at line 941 of file nxpfs85xx.c.