STM32/mavlink/Lattepanda_shiled/mavlink_msg_alarm_set_a.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_alarm_set_a_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  uint8_t AL_Mask_week, uint8_t AL_Mask_hour, uint8_t AL_Mask_min, uint8_t AL_Mask_sec, uint8_t AL_date_week_day_sel, uint8_t AL_date, uint8_t AL_hour, uint8_t AL_min, uint8_t AL_sec)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char *buf = (char *)msgbuf;
	_mav_put_uint8_t(buf, 0, AL_Mask_week);
	_mav_put_uint8_t(buf, 1, AL_Mask_hour);
	_mav_put_uint8_t(buf, 2, AL_Mask_min);
	_mav_put_uint8_t(buf, 3, AL_Mask_sec);
	_mav_put_uint8_t(buf, 4, AL_date_week_day_sel);
	_mav_put_uint8_t(buf, 5, AL_date);
	_mav_put_uint8_t(buf, 6, AL_hour);
	_mav_put_uint8_t(buf, 7, AL_min);
	_mav_put_uint8_t(buf, 8, AL_sec);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ALARM_SET_A, buf, MAVLINK_MSG_ID_ALARM_SET_A_MIN_LEN, MAVLINK_MSG_ID_ALARM_SET_A_LEN, MAVLINK_MSG_ID_ALARM_SET_A_CRC);
#else
	mavlink_alarm_set_a_t *packet = (mavlink_alarm_set_a_t *)msgbuf;
	packet->AL_Mask_week = AL_Mask_week;
	packet->AL_Mask_hour = AL_Mask_hour;
	packet->AL_Mask_min = AL_Mask_min;
	packet->AL_Mask_sec = AL_Mask_sec;
	packet->AL_date_week_day_sel = AL_date_week_day_sel;
	packet->AL_date = AL_date;
	packet->AL_hour = AL_hour;
	packet->AL_min = AL_min;
	packet->AL_sec = AL_sec;
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_ALARM_SET_A, (const char *)packet, MAVLINK_MSG_ID_ALARM_SET_A_MIN_LEN, MAVLINK_MSG_ID_ALARM_SET_A_LEN, MAVLINK_MSG_ID_ALARM_SET_A_CRC);
#endif
}
static inline void mavlink_msg_alarm_set_a_send_buf ( mavlink_message_t * msgbuf , mavlink_channel_t chan , uint8_t AL_Mask_week , uint8_t AL_Mask_hour , uint8_t AL_Mask_min , uint8_t AL_Mask_sec , uint8_t AL_date_week_day_sel , uint8_t AL_date , uint8_t AL_hour , uint8_t AL_min , uint8_t AL_sec ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char * buf = ( char * ) msgbuf ; _mav_put_uint8_t ( buf , 0 , AL_Mask_week ) ; _mav_put_uint8_t ( buf , 1 , AL_Mask_hour ) ; _mav_put_uint8_t ( buf , 2 , AL_Mask_min ) ; _mav_put_uint8_t ( buf , 3 , AL_Mask_sec ) ; _mav_put_uint8_t ( buf , 4 , AL_date_week_day_sel ) ; _mav_put_uint8_t ( buf , 5 , AL_date ) ; _mav_put_uint8_t ( buf , 6 , AL_hour ) ; _mav_put_uint8_t ( buf , 7 , AL_min ) ; _mav_put_uint8_t ( buf , 8 , AL_sec ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_ALARM_SET_A , buf , MAVLINK_MSG_ID_ALARM_SET_A_MIN_LEN , MAVLINK_MSG_ID_ALARM_SET_A_LEN , MAVLINK_MSG_ID_ALARM_SET_A_CRC ) ; #else mavlink_alarm_set_a_t * packet = ( mavlink_alarm_set_a_t * ) msgbuf ; packet -> AL_Mask_week = AL_Mask_week ; packet -> AL_Mask_hour = AL_Mask_hour ; packet -> AL_Mask_min = AL_Mask_min ; packet -> AL_Mask_sec = AL_Mask_sec ; packet -> AL_date_week_day_sel = AL_date_week_day_sel ; packet -> AL_date = AL_date ; packet -> AL_hour = AL_hour ; packet -> AL_min = AL_min ; packet -> AL_sec = AL_sec ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_ALARM_SET_A , ( const char * ) packet , MAVLINK_MSG_ID_ALARM_SET_A_MIN_LEN , MAVLINK_MSG_ID_ALARM_SET_A_LEN , MAVLINK_MSG_ID_ALARM_SET_A_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 .