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
4 years ago
|
/*
|
||
|
* UAVCAN data structure definition for libcanard.
|
||
|
*
|
||
|
* Autogenerated, do not edit.
|
||
|
*
|
||
|
* Source file: E:\000_MyProjects\UAVCAN\libcanard_zrzk_new\dsdl_compiler\zrzk\equipment\flow\16121.WaterDepth.uavcan
|
||
|
*/
|
||
|
|
||
|
#ifndef __ZRZK_EQUIPMENT_FLOW_WATERDEPTH
|
||
|
#define __ZRZK_EQUIPMENT_FLOW_WATERDEPTH
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include "canard.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
/******************************* Source text **********************************
|
||
|
uint8 id
|
||
|
float16 depth
|
||
|
float16 temperature
|
||
|
******************************************************************************/
|
||
|
|
||
|
/********************* DSDL signature source definition ***********************
|
||
|
zrzk.equipment.flow.WaterDepth
|
||
|
saturated uint8 id
|
||
|
saturated float16 depth
|
||
|
saturated float16 temperature
|
||
|
******************************************************************************/
|
||
|
|
||
|
#define ZRZK_EQUIPMENT_FLOW_WATERDEPTH_ID 16121
|
||
|
//#define ZRZK_EQUIPMENT_FLOW_WATERDEPTH_NAME "zrzk.equipment.flow.WaterDepth"
|
||
|
#define ZRZK_EQUIPMENT_FLOW_WATERDEPTH_SIGNATURE (0xF64A367ACC2B7077ULL)
|
||
|
#define ZRZK_EQUIPMENT_FLOW_WATERDEPTH_MAX_SIZE ((40 + 7)/8)
|
||
|
|
||
|
// Constants
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
// FieldTypes
|
||
|
uint8_t id; // bit len 8
|
||
|
float depth; // float16 Saturate
|
||
|
float temperature; // float16 Saturate
|
||
|
|
||
|
} zrzk_equipment_flow_WaterDepth;
|
||
|
|
||
|
extern
|
||
|
uint32_t zrzk_equipment_flow_WaterDepth_encode(zrzk_equipment_flow_WaterDepth* source, void* msg_buf);
|
||
|
|
||
|
extern
|
||
|
int32_t zrzk_equipment_flow_WaterDepth_decode(const CanardRxTransfer* transfer, uint16_t payload_len, zrzk_equipment_flow_WaterDepth* dest, uint8_t** dyn_arr_buf);
|
||
|
|
||
|
extern
|
||
|
uint32_t zrzk_equipment_flow_WaterDepth_encode_internal(zrzk_equipment_flow_WaterDepth* source, void* msg_buf, uint32_t offset, uint8_t root_item);
|
||
|
|
||
|
extern
|
||
|
int32_t zrzk_equipment_flow_WaterDepth_decode_internal(const CanardRxTransfer* transfer, uint16_t payload_len, zrzk_equipment_flow_WaterDepth* dest, uint8_t** dyn_arr_buf, int32_t offset);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} // extern "C"
|
||
|
#endif
|
||
|
#endif // __ZRZK_EQUIPMENT_FLOW_WATERDEPTH
|