STM32/mavlink/Lattepanda_shiled/mavlink_msg_measuring_data.h
/*
  This varient of _send() can be used to save stack space by re-using
  memory from the receive buffer.  The caller provides a
  mavlink_message_t which is the size of a full mavlink message. This
  is usually the receive buffer for the channel, and allows a reply to an
  incoming message with minimum stack space usage.
 */
This varient of _send() can be used to save stack space by re-using
memory from the receive buffer.  The caller provides a
mavlink_message_t which is the size of a full mavlink message. This
is usually the receive buffer for the channel, and allows a reply to an
incoming message with minimum stack space usage.
This varient of _send () can be used to save stack space by re - using memory from the receive buffer . The caller provides a mavlink_message_t which is the size of a full mavlink message . This is usually the receive buffer for the channel and allows a reply to an incoming message with minimum stack space usage .
static inline void mavlink_msg_measuring_data_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  float Reg, float Cap, float Ind, float TC, float kelvin_mV, float TC_mV, uint16_t ADC_ch1, uint16_t ADC_ch2, uint8_t DI, uint8_t Set_Status)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char *buf = (char *)msgbuf;
	_mav_put_float(buf, 0, Reg);
	_mav_put_float(buf, 4, Cap);
	_mav_put_float(buf, 8, Ind);
	_mav_put_float(buf, 12, TC);
	_mav_put_float(buf, 16, kelvin_mV);
	_mav_put_float(buf, 20, TC_mV);
	_mav_put_uint16_t(buf, 24, ADC_ch1);
	_mav_put_uint16_t(buf, 26, ADC_ch2);
	_mav_put_uint8_t(buf, 28, DI);
	_mav_put_uint8_t(buf, 29, Set_Status);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MEASURING_DATA, buf, MAVLINK_MSG_ID_MEASURING_DATA_MIN_LEN, MAVLINK_MSG_ID_MEASURING_DATA_LEN, MAVLINK_MSG_ID_MEASURING_DATA_CRC);
#else
	mavlink_measuring_data_t *packet = (mavlink_measuring_data_t *)msgbuf;
	packet->Reg = Reg;
	packet->Cap = Cap;
	packet->Ind = Ind;
	packet->TC = TC;
	packet->kelvin_mV = kelvin_mV;
	packet->TC_mV = TC_mV;
	packet->ADC_ch1 = ADC_ch1;
	packet->ADC_ch2 = ADC_ch2;
	packet->DI = DI;
	packet->Set_Status = Set_Status;
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MEASURING_DATA, (const char *)packet, MAVLINK_MSG_ID_MEASURING_DATA_MIN_LEN, MAVLINK_MSG_ID_MEASURING_DATA_LEN, MAVLINK_MSG_ID_MEASURING_DATA_CRC);
#endif
}
static inline void mavlink_msg_measuring_data_send_buf ( mavlink_message_t * msgbuf , mavlink_channel_t chan , float Reg , float Cap , float Ind , float TC , float kelvin_mV , float TC_mV , uint16_t ADC_ch1 , uint16_t ADC_ch2 , uint8_t DI , uint8_t Set_Status ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char * buf = ( char * ) msgbuf ; _mav_put_float ( buf , 0 , Reg ) ; _mav_put_float ( buf , 4 , Cap ) ; _mav_put_float ( buf , 8 , Ind ) ; _mav_put_float ( buf , 12 , TC ) ; _mav_put_float ( buf , 16 , kelvin_mV ) ; _mav_put_float ( buf , 20 , TC_mV ) ; _mav_put_uint16_t ( buf , 24 , ADC_ch1 ) ; _mav_put_uint16_t ( buf , 26 , ADC_ch2 ) ; _mav_put_uint8_t ( buf , 28 , DI ) ; _mav_put_uint8_t ( buf , 29 , Set_Status ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MEASURING_DATA , buf , MAVLINK_MSG_ID_MEASURING_DATA_MIN_LEN , MAVLINK_MSG_ID_MEASURING_DATA_LEN , MAVLINK_MSG_ID_MEASURING_DATA_CRC ) ; #else mavlink_measuring_data_t * packet = ( mavlink_measuring_data_t * ) msgbuf ; packet -> Reg = Reg ; packet -> Cap = Cap ; packet -> Ind = Ind ; packet -> TC = TC ; packet -> kelvin_mV = kelvin_mV ; packet -> TC_mV = TC_mV ; packet -> ADC_ch1 = ADC_ch1 ; packet -> ADC_ch2 = ADC_ch2 ; packet -> DI = DI ; packet -> Set_Status = Set_Status ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MEASURING_DATA , ( const char * ) packet , MAVLINK_MSG_ID_MEASURING_DATA_MIN_LEN , MAVLINK_MSG_ID_MEASURING_DATA_LEN , MAVLINK_MSG_ID_MEASURING_DATA_CRC ) ; #endif }
This varient of _send() can be used to save stack space by re-using
memory from the receive buffer.
This varient of _send () can be used to save stack space by re - using memory from the receive buffer .