You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.1 KiB
65 lines
2.1 KiB
/* |
|
* UAVCAN data structure definition for libcanard. |
|
* |
|
* Autogenerated, do not edit. |
|
* |
|
* Source file: E:\000_MyProjects\UAVCAN\libcanard_zrzk_new\dsdl_compiler\zrzk\equipment\flow\26120.Water.uavcan |
|
*/ |
|
|
|
#ifndef __ZRZK_EQUIPMENT_FLOW_WATER |
|
#define __ZRZK_EQUIPMENT_FLOW_WATER |
|
|
|
#include <stdint.h> |
|
#include "canard.h" |
|
|
|
#ifdef __cplusplus |
|
extern "C" |
|
{ |
|
#endif |
|
|
|
/******************************* Source text ********************************** |
|
uint8[<=27] flow_array |
|
******************************************************************************/ |
|
|
|
/********************* DSDL signature source definition *********************** |
|
zrzk.equipment.flow.Water |
|
saturated uint8[<=27] flow_array |
|
******************************************************************************/ |
|
|
|
#define ZRZK_EQUIPMENT_FLOW_WATER_ID 26120 |
|
#define ZRZK_EQUIPMENT_FLOW_WATER_NAME "zrzk.equipment.flow.Water" |
|
#define ZRZK_EQUIPMENT_FLOW_WATER_SIGNATURE (0x8E702D026249DD98ULL) |
|
|
|
#define ZRZK_EQUIPMENT_FLOW_WATER_MAX_SIZE ((221 + 7)/8) |
|
|
|
// Constants |
|
|
|
#define ZRZK_EQUIPMENT_FLOW_WATER_FLOW_ARRAY_MAX_LENGTH 27 |
|
|
|
typedef struct |
|
{ |
|
// FieldTypes |
|
struct |
|
{ |
|
uint8_t len; // Dynamic array length |
|
uint8_t* data; // Dynamic Array 8bit[27] max items |
|
} flow_array; |
|
|
|
} zrzk_equipment_flow_Water; |
|
|
|
extern |
|
uint32_t zrzk_equipment_flow_Water_encode(zrzk_equipment_flow_Water* source, void* msg_buf); |
|
|
|
extern |
|
int32_t zrzk_equipment_flow_Water_decode(const CanardRxTransfer* transfer, uint16_t payload_len, zrzk_equipment_flow_Water* dest, uint8_t** dyn_arr_buf); |
|
|
|
extern |
|
uint32_t zrzk_equipment_flow_Water_encode_internal(zrzk_equipment_flow_Water* source, void* msg_buf, uint32_t offset, uint8_t root_item); |
|
|
|
extern |
|
int32_t zrzk_equipment_flow_Water_decode_internal(const CanardRxTransfer* transfer, uint16_t payload_len, zrzk_equipment_flow_Water* dest, uint8_t** dyn_arr_buf, int32_t offset); |
|
|
|
#ifdef __cplusplus |
|
} // extern "C" |
|
#endif |
|
#endif // __ZRZK_EQUIPMENT_FLOW_WATER
|
|
|