Passing multidimensional arrays over HAL UART
Hello,
I have a 246 x 3 matrix that I have filled with counter values in the below for loops. I for some reason cannot get the HAL_UART to output individual columns of this matrix.
for(i=0; i<246; i++)
{
for(j=0;j<3;j++)
{
Audio_Data[i][j] = counter++;
}
}
HAL_UART_Transmit(&huart1, (uint8_t *)&Audio_Data[0][0], 246,1);
Here I would like to output the entire first column, which should be values 0 through 245.
If I want to trasmit Audio_Data[0][1] (entire column) wouldn't that be 246 through 491 etc...
What am I doing wrong here?
Thanks for any help
