123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #ifndef DEFINES_H__
- #define DEFINES_H__
- #include <stdint.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define MAX_ULONG 0xFFFFFFFFu
- typedef union
- {
- uint16_t data;
- struct
- {
- uint8_t low;
- uint8_t high;
- } bytes;
- } ushort_union_t;
- typedef union
- {
- uint32_t data;
- uint8_t data_bytes[sizeof(uint32_t)];
- struct
- {
-
- uint8_t byte0;
- uint8_t byte1;
- uint8_t byte2;
- uint8_t byte3;
- } bytes;
- } ulong_union_t;
- #ifdef __cplusplus
- }
- #endif
- #endif
|