| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #pragma once
- #include <stdbool.h>
- #include <stdint.h>
- #include <canard.h>
- #define VKWEIGHER_FUSEBREAK_REQUEST_MAX_SIZE 1
- #define VKWEIGHER_FUSEBREAK_REQUEST_SIGNATURE (0xAB0D626FEAA1A2E0ULL)
- #define VKWEIGHER_FUSEBREAK_REQUEST_ID 235
- #if defined(__cplusplus) && defined(DRONECAN_CXX_WRAPPERS)
- class vkweigher_FuseBreak_cxx_iface;
- #endif
- struct vkweigher_FuseBreakRequest {
- #if defined(__cplusplus) && defined(DRONECAN_CXX_WRAPPERS)
- using cxx_iface = vkweigher_FuseBreak_cxx_iface;
- #endif
- uint8_t break_cmd;
- };
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- uint32_t vkweigher_FuseBreakRequest_encode(struct vkweigher_FuseBreakRequest* msg, uint8_t* buffer
- #if CANARD_ENABLE_TAO_OPTION
- , bool tao
- #endif
- );
- bool vkweigher_FuseBreakRequest_decode(const CanardRxTransfer* transfer, struct vkweigher_FuseBreakRequest* msg);
- #if defined(CANARD_DSDLC_INTERNAL)
- static inline void _vkweigher_FuseBreakRequest_encode(uint8_t* buffer, uint32_t* bit_ofs, struct vkweigher_FuseBreakRequest* msg, bool tao);
- static inline bool _vkweigher_FuseBreakRequest_decode(const CanardRxTransfer* transfer, uint32_t* bit_ofs, struct vkweigher_FuseBreakRequest* msg, bool tao);
- void _vkweigher_FuseBreakRequest_encode(uint8_t* buffer, uint32_t* bit_ofs, struct vkweigher_FuseBreakRequest* msg, bool tao) {
- (void)buffer;
- (void)bit_ofs;
- (void)msg;
- (void)tao;
- canardEncodeScalar(buffer, *bit_ofs, 8, &msg->break_cmd);
- *bit_ofs += 8;
- }
- /*
- decode vkweigher_FuseBreakRequest, return true on failure, false on success
- */
- bool _vkweigher_FuseBreakRequest_decode(const CanardRxTransfer* transfer, uint32_t* bit_ofs, struct vkweigher_FuseBreakRequest* msg, bool tao) {
- (void)transfer;
- (void)bit_ofs;
- (void)msg;
- (void)tao;
- canardDecodeScalar(transfer, *bit_ofs, 8, false, &msg->break_cmd);
- *bit_ofs += 8;
- return false; /* success */
- }
- #endif
- #ifdef CANARD_DSDLC_TEST_BUILD
- struct vkweigher_FuseBreakRequest sample_vkweigher_FuseBreakRequest_msg(void);
- #endif
- #ifdef __cplusplus
- } // extern "C"
- #ifdef DRONECAN_CXX_WRAPPERS
- #include <canard/cxx_wrappers.h>
- #endif
- #endif
|