STM32/mavlink/Lattepanda_shiled/mavlink_msg_real_time_clock_set.h
/**
 * @brief Pack a real_time_clock_set 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 subsec Real time clock sec setting
 * @param year Real time clock Year setting
 * @param month Real time clock month setting
 * @param mday Real time clock month setting
 * @param wday Real time clock wday setting
 * @param hour Real time clock hour setting
 * @param min Real time clock min setting
 * @param sec Real time clock sec setting
 * @param timeFormat Real time clock timeFormat setting
 * @param DayLightSaving Real time clock DayLightSaving setting
 * @return length of the message in bytes (excluding serial stream start sign)
 */
@brief Pack a real_time_clock_set 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 real_time_clock_set 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_real_time_clock_set_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
						       uint32_t subsec, uint16_t year, uint8_t month, uint8_t mday, uint8_t wday, uint8_t hour, uint8_t min, uint8_t sec, uint8_t timeFormat, uint8_t DayLightSaving)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
	char buf[MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN];
	_mav_put_uint32_t(buf, 0, subsec);
	_mav_put_uint16_t(buf, 4, year);
	_mav_put_uint8_t(buf, 6, month);
	_mav_put_uint8_t(buf, 7, mday);
	_mav_put_uint8_t(buf, 8, wday);
	_mav_put_uint8_t(buf, 9, hour);
	_mav_put_uint8_t(buf, 10, min);
	_mav_put_uint8_t(buf, 11, sec);
	_mav_put_uint8_t(buf, 12, timeFormat);
	_mav_put_uint8_t(buf, 13, DayLightSaving);
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN);
#else
	mavlink_real_time_clock_set_t packet;
	packet.subsec = subsec;
	packet.year = year;
	packet.month = month;
	packet.mday = mday;
	packet.wday = wday;
	packet.hour = hour;
	packet.min = min;
	packet.sec = sec;
	packet.timeFormat = timeFormat;
	packet.DayLightSaving = DayLightSaving;
        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN);
#endif
	msg->msgid = MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET;
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_MIN_LEN, MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN, MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_CRC);
}
static inline uint16_t mavlink_msg_real_time_clock_set_pack ( uint8_t system_id , uint8_t component_id , mavlink_message_t * msg , uint32_t subsec , uint16_t year , uint8_t month , uint8_t mday , uint8_t wday , uint8_t hour , uint8_t min , uint8_t sec , uint8_t timeFormat , uint8_t DayLightSaving ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char buf [ MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN ] ; _mav_put_uint32_t ( buf , 0 , subsec ) ; _mav_put_uint16_t ( buf , 4 , year ) ; _mav_put_uint8_t ( buf , 6 , month ) ; _mav_put_uint8_t ( buf , 7 , mday ) ; _mav_put_uint8_t ( buf , 8 , wday ) ; _mav_put_uint8_t ( buf , 9 , hour ) ; _mav_put_uint8_t ( buf , 10 , min ) ; _mav_put_uint8_t ( buf , 11 , sec ) ; _mav_put_uint8_t ( buf , 12 , timeFormat ) ; _mav_put_uint8_t ( buf , 13 , DayLightSaving ) ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , buf , MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN ) ; #else mavlink_real_time_clock_set_t packet ; packet . subsec = subsec ; packet . year = year ; packet . month = month ; packet . mday = mday ; packet . wday = wday ; packet . hour = hour ; packet . min = min ; packet . sec = sec ; packet . timeFormat = timeFormat ; packet . DayLightSaving = DayLightSaving ; memcpy ( _MAV_PAYLOAD_NON_CONST ( msg ) , & packet , MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN ) ; #endif msg -> msgid = MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET ; return mavlink_finalize_message ( msg , system_id , component_id , MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_MIN_LEN , MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_LEN , MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET_CRC ) ; }
@brief Pack a real_time_clock_set message
 @param system_id ID of this system
 @param component_id ID of this component (e.g.
@brief Pack a real_time_clock_set message @param system_id ID of this system @param component_id ID of this component ( e . g .