#pragma once #include #include namespace iflytop { typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; typedef int8_t s8; typedef int16_t s16; typedef int32_t s32; typedef int64_t s64; typedef float f32; typedef double f64; typedef enum { kset_cmd_type_read = 0, kset_cmd_type_set = 1, } SetCmdOperationType_t; typedef enum { kMotorStopType_stop = 0, kMotorStopType_break = 1, } MotorStopType_t; typedef enum { kmodule_statu_idle = 0, kmodule_statu_work = 1, kmodule_statu_exception = 2, } module_statu_type_t; #ifndef ZSTRUCT #define ZSTRUCT(name, ...) \ typedef struct { \ __VA_ARGS__ \ } name; #endif #pragma pack(push, 1) typedef struct { u16 id; uint32_t errorcode; } zcan_cmder_error_ack_t; typedef struct { u8 is_end; u8 len; u8 packet[255]; } zcancmder_read_ram_ack_t; #pragma pack(pop) typedef std::function action_cb_status_t; } // namespace iflytop