blob: 34704134236b86fd93db74ed2e4ba62a296d5ac0 [file] [log] [blame]
#ifndef PLDM_TYPES_H
#define PLDM_TYPES_H
#include <stdint.h>
typedef union {
uint8_t byte;
struct {
uint8_t bit0 : 1;
uint8_t bit1 : 1;
uint8_t bit2 : 1;
uint8_t bit3 : 1;
uint8_t bit4 : 1;
uint8_t bit5 : 1;
uint8_t bit6 : 1;
uint8_t bit7 : 1;
} __attribute__((packed)) bits;
} bitfield8_t;
/** @struct pldm_version
*
*
*/
typedef struct pldm_version {
uint8_t major;
uint8_t minor;
uint8_t update;
uint8_t alpha;
} __attribute__((packed)) ver32_t;
typedef uint8_t bool8_t;
#endif /* PLDM_TYPES_H */