blob: 32228d757864f19c3753aa1d108888d503e2d58b [file] [log] [blame]
#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 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;