#pragma once #include #include #include #define VKWEIGHER_FUSEBREAK_RESPONSE_MAX_SIZE 1 #define VKWEIGHER_FUSEBREAK_RESPONSE_SIGNATURE (0xAB0D626FEAA1A2E0ULL) #define VKWEIGHER_FUSEBREAK_RESPONSE_ID 235 #define VKWEIGHER_FUSEBREAK_RESPONSE_RESULT_SUCCESS 1 #define VKWEIGHER_FUSEBREAK_RESPONSE_RESULT_REJECTED 0 #define VKWEIGHER_FUSEBREAK_RESPONSE_RESULT_FAILED -1 #if defined(__cplusplus) && defined(DRONECAN_CXX_WRAPPERS) class vkweigher_FuseBreak_cxx_iface; #endif struct vkweigher_FuseBreakResponse { #if defined(__cplusplus) && defined(DRONECAN_CXX_WRAPPERS) using cxx_iface = vkweigher_FuseBreak_cxx_iface; #endif int8_t result; }; #ifdef __cplusplus extern "C" { #endif uint32_t vkweigher_FuseBreakResponse_encode(struct vkweigher_FuseBreakResponse* msg, uint8_t* buffer #if CANARD_ENABLE_TAO_OPTION , bool tao #endif ); bool vkweigher_FuseBreakResponse_decode(const CanardRxTransfer* transfer, struct vkweigher_FuseBreakResponse* msg); #if defined(CANARD_DSDLC_INTERNAL) static inline void _vkweigher_FuseBreakResponse_encode(uint8_t* buffer, uint32_t* bit_ofs, struct vkweigher_FuseBreakResponse* msg, bool tao); static inline bool _vkweigher_FuseBreakResponse_decode(const CanardRxTransfer* transfer, uint32_t* bit_ofs, struct vkweigher_FuseBreakResponse* msg, bool tao); void _vkweigher_FuseBreakResponse_encode(uint8_t* buffer, uint32_t* bit_ofs, struct vkweigher_FuseBreakResponse* msg, bool tao) { (void)buffer; (void)bit_ofs; (void)msg; (void)tao; canardEncodeScalar(buffer, *bit_ofs, 8, &msg->result); *bit_ofs += 8; } /* decode vkweigher_FuseBreakResponse, return true on failure, false on success */ bool _vkweigher_FuseBreakResponse_decode(const CanardRxTransfer* transfer, uint32_t* bit_ofs, struct vkweigher_FuseBreakResponse* msg, bool tao) { (void)transfer; (void)bit_ofs; (void)msg; (void)tao; canardDecodeScalar(transfer, *bit_ofs, 8, true, &msg->result); *bit_ofs += 8; return false; /* success */ } #endif #ifdef CANARD_DSDLC_TEST_BUILD struct vkweigher_FuseBreakResponse sample_vkweigher_FuseBreakResponse_msg(void); #endif #ifdef __cplusplus } // extern "C" #ifdef DRONECAN_CXX_WRAPPERS #include #endif #endif