Firmware/src/communication/mavlink/mav_home/mavlink_msg_mav_curtains_cmd.h
static inline void mavlink_msg_mav_curtains_cmd_decode(const mavlink_message_t* msg, mavlink_mav_curtains_cmd_t* mav_curtains_cmd)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    mav_curtains_cmd->command = mavlink_msg_mav_curtains_cmd_get_command(msg);
#else
        uint8_t len = msg->len < MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN? msg->len : MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN;
        memset(mav_curtains_cmd, 0, MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN);
    memcpy(mav_curtains_cmd, _MAV_PAYLOAD(msg), len);
#endif
}
/**
 * @brief Decode a mav_curtains_cmd message into a struct
 *
 * @param msg The message to decode
 * @param mav_curtains_cmd C-struct to decode the message contents into
 */
@brief Decode a mav_curtains_cmd message into a struct
@param msg The message to decode
@param mav_curtains_cmd C-struct to decode the message contents into
@brief Decode a mav_curtains_cmd message into a struct @param msg The message to decode @param mav_curtains_cmd C - struct to decode the message contents into
static inline void mavlink_msg_mav_curtains_cmd_decode(const mavlink_message_t* msg, mavlink_mav_curtains_cmd_t* mav_curtains_cmd)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    mav_curtains_cmd->command = mavlink_msg_mav_curtains_cmd_get_command(msg);
#else
        uint8_t len = msg->len < MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN? msg->len : MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN;
        memset(mav_curtains_cmd, 0, MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN);
    memcpy(mav_curtains_cmd, _MAV_PAYLOAD(msg), len);
#endif
}
static inline void mavlink_msg_mav_curtains_cmd_decode ( const mavlink_message_t * msg , mavlink_mav_curtains_cmd_t * mav_curtains_cmd ) { #if MAVLINK_NEED_BYTE_SWAP || ! MAVLINK_ALIGNED_FIELDS mav_curtains_cmd -> command = mavlink_msg_mav_curtains_cmd_get_command ( msg ) ; #else uint8_t len = msg -> len < MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN ? msg -> len : MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN ; memset ( mav_curtains_cmd , 0 , MAVLINK_MSG_ID_MAV_CURTAINS_CMD_LEN ) ; memcpy ( mav_curtains_cmd , _MAV_PAYLOAD ( msg ) , len ) ; #endif }
@brief Decode a mav_curtains_cmd message into a struct
 @param msg The message to decode
 @param mav_curtains_cmd C-struct to decode the message contents into
@brief Decode a mav_curtains_cmd message into a struct @param msg The message to decode @param mav_curtains_cmd C - struct to decode the message contents into