2016-01-21 05:59 AM
Guys,
I have a question for transmitting multiple bytes on STM32CubeMX, Can I make like this :/* Send a data block fast */
static
void xmit_spi_multi (
uint8_t p[], /* Data block to be sent */
UINT cnt
)
{
HAL_SPI_Transmit(&hspi2,p,cnt,100);
}
Thanks
2016-01-21 08:12 PM
cnt
is never larger than the size of the buffer thatp
points to, that code will work.