STM32/mavlink/Lattepanda_shiled/mavlink_msg_real_time_clock_set.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_real_time_clock_set_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  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 = (char *)msgbuf;
	_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);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET, buf, 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);
#else
	mavlink_real_time_clock_set_t *packet = (mavlink_real_time_clock_set_t *)msgbuf;
	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;
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET, (const char *)packet, 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);
#endif
}
static inline void mavlink_msg_real_time_clock_set_send_buf ( mavlink_message_t * msgbuf , mavlink_channel_t chan , 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 = ( char * ) msgbuf ; _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 ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET , buf , 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 ) ; #else mavlink_real_time_clock_set_t * packet = ( mavlink_real_time_clock_set_t * ) msgbuf ; 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 ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_REAL_TIME_CLOCK_SET , ( const char * ) packet , 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 ) ; #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 .