| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef __VAN_COM_DEFINE_H__
- #define __VAN_COM_DEFINE_H__
- #ifndef VAN_CONFIG_NOCARE
- #define VAN_CONFIG_NOCARE 0xffffffff
- #define VAN_CFG_NO_PRT (void *)0
- #endif
- #ifndef Bool
- typedef enum
- {
- True = 1,
- False = 0
- } Bool;
- #endif
- #ifndef Length
- #define Length(table) (sizeof(table) / sizeof(table[0]))
- #endif
- typedef enum {
- VAN_COM_EER_OK = 0,
- VAN_COM_EER_FAILED = 1,
- VAN_COM_EER_NOSUPPORT,
- VAN_COM_EER_OUTTIME,
- VAN_COM_EER_PARAM,
- VAN_COM_EER_SENSOR,
- VAN_COM_EER_NORUN = (int)0xffffffff,
- }VAN_COM_EER_DEF;
- #define NAMEANDID(chanle) .ID = chanle, .Name = #chanle
- #endif //__VAN_COM_DEFINE_H__
|