|
embedded-software
reusable software modules for embedded systems
|
#include <int_def.h>
Data Fields | |
| uint8_t | b |
| byte member More... | |
| struct { | |
| uint8_t b0:1 | |
| uint8_t b1:1 | |
| uint8_t b2:1 | |
| uint8_t b3:1 | |
| uint8_t b4:1 | |
| uint8_t b5:1 | |
| uint8_t b6:1 | |
| uint8_t b7:1 | |
| } | bits |
| bitfield member, b0 LSb, b7 MSb More... | |
| struct { | |
| uint8_t low:4 | |
| uint8_t high:4 | |
| } | nibble |
8-bit union type
Example usage
| uint8_t b |
byte member
| uint8_t b0 |
| uint8_t b1 |
| uint8_t b2 |
| uint8_t b3 |
| uint8_t b4 |
| uint8_t b5 |
| uint8_t b6 |
| uint8_t b7 |
| struct { ... } bits |
bitfield member, b0 LSb, b7 MSb
| uint8_t high |
| uint8_t low |
| struct { ... } nibble |