I'm trying to get data from the lis3dsh accelerometer (STM32f4discovery board). I use HAL library. As far as I understood, the incoming data values from the accelerometer might be negative value (int type), but HAL library function operates with uint type
HAL_StatusTypeDef HAL_SPI_TransmitReceive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size)
{
......
}
There is the same situation with other functions for SPI. And USART as well. How one is supposed to recieve and transmit signed values&