2023-12-03 11:59 PM
Hi, I have an STM32H723ZG and I want to transmit a matrix in which I stored some measured data on a CAN bus. I can use the following function only writing the pointer to the matrix in "pTxData" or I have to segment the matrix?
HAL_FDCAN_AddMessageToTxFifoQ (FDCAN_HandleTypeDef * hfdcan,
FDCAN_TxHeaderTypeDef * pTxHeader, uint8_t * pTxData)
Moreover, I have to define manually the "pTxHeader" or is it created automatically by the STM32CubeMX?
2023-12-04 09:14 AM
You can pass the pointer to the data. You have to create a new pTxHeader instance, then configure the pTxHeader with appropriate arguments.