Firmware/src/communication/mavlink/mav_home/mavlink_msg_mav_curtains_drive_state.h
static inline void mavlink_msg_mav_curtains_drive_state_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  uint8_t drive_state, uint8_t lamp_state, uint8_t errors, uint8_t brightness)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_uint8_t(buf, 0, drive_state);
    _mav_put_uint8_t(buf, 1, lamp_state);
    _mav_put_uint8_t(buf, 2, errors);
    _mav_put_uint8_t(buf, 3, brightness);

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE, buf, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_MIN_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_CRC);
#else
    mavlink_mav_curtains_drive_state_t *packet = (mavlink_mav_curtains_drive_state_t *)msgbuf;
    packet->drive_state = drive_state;
    packet->lamp_state = lamp_state;
    packet->errors = errors;
    packet->brightness = brightness;

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE, (const char *)packet, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_MIN_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_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_curtains_drive_state_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  uint8_t drive_state, uint8_t lamp_state, uint8_t errors, uint8_t brightness)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_uint8_t(buf, 0, drive_state);
    _mav_put_uint8_t(buf, 1, lamp_state);
    _mav_put_uint8_t(buf, 2, errors);
    _mav_put_uint8_t(buf, 3, brightness);
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE, buf, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_MIN_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_CRC);
#else
    mavlink_mav_curtains_drive_state_t *packet = (mavlink_mav_curtains_drive_state_t *)msgbuf;
    packet->drive_state = drive_state;
    packet->lamp_state = lamp_state;
    packet->errors = errors;
    packet->brightness = brightness;
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE, (const char *)packet, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_MIN_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_LEN, MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_CRC);
#endif
}
static inline void mavlink_msg_mav_curtains_drive_state_send_buf ( mavlink_message_t * msgbuf , mavlink_channel_t chan , uint8_t drive_state , uint8_t lamp_state , uint8_t errors , uint8_t brightness ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS char * buf = ( char * ) msgbuf ; _mav_put_uint8_t ( buf , 0 , drive_state ) ; _mav_put_uint8_t ( buf , 1 , lamp_state ) ; _mav_put_uint8_t ( buf , 2 , errors ) ; _mav_put_uint8_t ( buf , 3 , brightness ) ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE , buf , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_MIN_LEN , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_LEN , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_CRC ) ; #else mavlink_mav_curtains_drive_state_t * packet = ( mavlink_mav_curtains_drive_state_t * ) msgbuf ; packet -> drive_state = drive_state ; packet -> lamp_state = lamp_state ; packet -> errors = errors ; packet -> brightness = brightness ; _mav_finalize_message_chan_send ( chan , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE , ( const char * ) packet , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_MIN_LEN , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_LEN , MAVLINK_MSG_ID_MAV_CURTAINS_DRIVE_STATE_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 .