Code: Select all
typedef struct rmt_item32_s {
union {
struct {
uint32_t duration0 :15;
uint32_t level0 :1;
uint32_t duration1 :15;
uint32_t level1 :1;
};
uint32_t val;
};
} rmt_item32_t;
and how is the packing happening ? based on the datasheet I understand that each item is only 32 bit only consist of level and pulse length while the struct member each @ 32bit length.