STM32/mavlink/Lattepanda_shiled/mavlink_msg_alarm_set_a.h
/**
 * @brief Pack a alarm_set_a message
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 *
 * @param AL_Mask_week Alarm Mask setting
 * @param AL_Mask_hour Alarm Mask setting
 * @param AL_Mask_min Alarm Mask setting
 * @param AL_Mask_sec Alarm Mask setting
 * @param AL_date_week_day_sel Alarm Mask setting
 * @param AL_date Alarm Mask setting
 * @param AL_hour Alarm time  hour setting
 * @param AL_min Alarm time  min setting
 * @param AL_sec Alarm time  sec setting
 * @return length of the message in bytes (excluding serial stream start sign)
 */
@brief Pack a alarm_set_a message
@param system_id ID of this system
@param component_id ID of this component
@param msg The MAVLink message to compress the data into


@brief Pack a alarm_set_a message @param system_id ID of this system @param component_id ID of this component @param msg The MAVLink message to compress the data into
static inline uint16_t mavlink_msg_alarm_set_a_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
						       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[MAVLINK_MSG_ID_ALARM_SET_A_LEN];
	_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);
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_ALARM_SET_A_LEN);
#else
	mavlink_alarm_set_a_t packet;
	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;
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_ALARM_SET_A_LEN);
#endif
	msg->msgid = MAVLINK_MSG_ID_ALARM_SET_A;
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_ALARM_SET_A_MIN_LEN, MAVLINK_MSG_ID_ALARM_SET_A_LEN, MAVLINK_MSG_ID_ALARM_SET_A_CRC);
}
static inline uint16_t mavlink_msg_alarm_set_a_pack ( uint8_t system_id , uint8_t component_id , mavlink_message_t * msg , 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 [ MAVLINK_MSG_ID_ALARM_SET_A_LEN ] ; _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 ) ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , buf , MAVLINK_MSG_ID_ALARM_SET_A_LEN ) ; #else mavlink_alarm_set_a_t packet ; 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 ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , & packet , MAVLINK_MSG_ID_ALARM_SET_A_LEN ) ; #endif msg -> msgid = MAVLINK_MSG_ID_ALARM_SET_A ; return mavlink_finalize_message ( msg , system_id , component_id , MAVLINK_MSG_ID_ALARM_SET_A_MIN_LEN , MAVLINK_MSG_ID_ALARM_SET_A_LEN , MAVLINK_MSG_ID_ALARM_SET_A_CRC ) ; }
@brief Pack a alarm_set_a message
 @param system_id ID of this system
 @param component_id ID of this component (e.g.
@brief Pack a alarm_set_a message @param system_id ID of this system @param component_id ID of this component ( e . g .