KugleFirmware/Libraries/Devices/MTI200/xbusmessage.c
/*!
 * \brief Read a number of floats from a message payload.
 * \param out Pointer to where to output data.
 * \param raw Pointer to the start of the raw float data.
 * \param floats The number of floats to read.
 */
\brief Read a number of floats from a message payload.
\param out Pointer to where to output data.
\param raw Pointer to the start of the raw float data.
\param floats The number of floats to read.
\ brief Read a number of floats from a message payload . \ param out Pointer to where to output data . \ param raw Pointer to the start of the raw float data . \ param floats The number of floats to read .
static void readFloats(float* out, uint8_t const* raw, uint8_t floats)
{
	for (int i = 0; i < floats; ++i)
	{
		raw = XbusUtility_readU32((uint32_t*)&out[i], raw);
	}
}
static void readFloats ( float * out , uint8_t const * raw , uint8_t floats ) { for ( int i = 0 ; i < floats ; ++ i ) { raw = XbusUtility_readU32 ( ( uint32_t * ) & out [ i ] , raw ) ; } }
\brief Read a number of floats from a message payload.
\ brief Read a number of floats from a message payload .