KugleFirmware/Libraries/Devices/MTI200/xbusmessage.c
/*!
 * \brief Calculate the number of bytes needed for \a message payload.
 */
\brief Calculate the number of bytes needed for \a message payload.
\ brief Calculate the number of bytes needed for \ a message payload .
static uint16_t messageLength(struct XbusMessage const* message)
{
	switch (message->mid)
	{
		case XMID_SetOutputConfig:
			return message->length * 2 * sizeof(uint16_t);
		default:
			return message->length;
	}
}
static uint16_t messageLength ( struct XbusMessage const * message ) { switch ( message -> mid ) { case XMID_SetOutputConfig : return message -> length * 2 * sizeof ( uint16_t ) ; default : return message -> length ; } }
\brief Calculate the number of bytes needed for \a message payload.
\ brief Calculate the number of bytes needed for \ a message payload .