AnsweredAssumed Answered

HAL_SPI_Transmit

Question asked by adeshra.vimmi on May 18, 2016
Latest reply on May 25, 2016 by kostka.tim
Hello,

We want to use HAL_SPI_Transmit function to load the data from 16 bit Array.  The function parameters are (SPI_Handle TypeDef *hspi, uint8_t * pdata, uint16_t Size, uint32_t Timeout).

Our data buffer is defined as following:

uint16_t DotRowBuff[24]

When we call above Transmit function, the pointer is uint8_t type and our data buffer is 16 bit. So can we not have 16 bit data pointer in this function? Or how can we define 8 bit pointer that will give the address of 16-bit array?

We are referring to UM1785 which gives the description of HAL drivers.

Please advise.


Outcomes