Firmware/src/communication/mavlink/mav_home/mavlink_msg_mav_switch_lamp.h
static inline void mavlink_msg_mav_switch_lamp_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  uint8_t tar_system_id, uint8_t command)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_uint8_t(buf, 0, tar_system_id);
    _mav_put_uint8_t(buf, 1, command);

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_SWITCH_LAMP, buf, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_MIN_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_CRC);
#else
    mavlink_mav_switch_lamp_t *packet = (mavlink_mav_switch_lamp_t *)msgbuf;
    packet->tar_system_id = tar_system_id;
    packet->command = command;

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_SWITCH_LAMP, (const char *)packet, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_MIN_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_CRC);
#endif
}
/*
  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_mav_switch_lamp_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  uint8_t tar_system_id, uint8_t command)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_uint8_t(buf, 0, tar_system_id);
    _mav_put_uint8_t(buf, 1, command);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_SWITCH_LAMP, buf, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_MIN_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_CRC);
#else
    mavlink_mav_switch_lamp_t *packet = (mavlink_mav_switch_lamp_t *)msgbuf;
    packet->tar_system_id = tar_system_id;
    packet->command = command;
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_SWITCH_LAMP, (const char *)packet, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_MIN_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_LEN, MAVLINK_MSG_ID_MAV_SWITCH_LAMP_CRC);
#endif
}
static inline void mavlink_msg_mav_switch_lamp_send_buf ( mavlink_message_t * msgbuf , mavlink_channel_t chan , uint8_t tar_system_id , uint8_t command ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char * buf = ( char * ) msgbuf ; _mav_put_uint8_t ( buf , 0 , tar_system_id ) ; _mav_put_uint8_t ( buf , 1 , command ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MAV_SWITCH_LAMP , buf , MAVLINK_MSG_ID_MAV_SWITCH_LAMP_MIN_LEN , MAVLINK_MSG_ID_MAV_SWITCH_LAMP_LEN , MAVLINK_MSG_ID_MAV_SWITCH_LAMP_CRC ) ; #else mavlink_mav_switch_lamp_t * packet = ( mavlink_mav_switch_lamp_t * ) msgbuf ; packet -> tar_system_id = tar_system_id ; packet -> command = command ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MAV_SWITCH_LAMP , ( const char * ) packet , MAVLINK_MSG_ID_MAV_SWITCH_LAMP_MIN_LEN , MAVLINK_MSG_ID_MAV_SWITCH_LAMP_LEN , MAVLINK_MSG_ID_MAV_SWITCH_LAMP_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 .