ESOS32
ESOSOn32-bitProcessors
Data Fields
_UINT8 Union Reference

#include <all_generic.h>

Data Fields

uint8_t _uint8
 
uint8_t u8
 
struct {
   unsigned   LSN: 4
 
   unsigned   MSN: 4
 
}; 
 
struct {
   unsigned   b0: 1
 
   unsigned   b1: 1
 
   unsigned   b2: 1
 
   unsigned   b3: 1
 
   unsigned   b4: 1
 
   unsigned   b5: 1
 
   unsigned   b6: 1
 
   unsigned   b7: 1
 
}; 
 

Detailed Description

Union structure to hold an uint8 (byte) to provide access to 8-bit data with different "viewpoints" (or casts, if you will).

Note
Works on machines that store their data little-endian. If you use big-endian, the members will have to be reordered!
Prefix for all UINT8 structs is U8_

Definition at line 61 of file all_generic.h.

Field Documentation

◆ _uint8

uint8_t _UINT8::_uint8

uint8 viewed as an uint8

Definition at line 63 of file all_generic.h.

◆ b0

unsigned _UINT8::b0

bit 0 (the LSb) of the uint8

Definition at line 73 of file all_generic.h.

◆ b1

unsigned _UINT8::b1

bit 1 of the uint8

Definition at line 76 of file all_generic.h.

◆ b2

unsigned _UINT8::b2

bit 2 of the uint8

Definition at line 79 of file all_generic.h.

◆ b3

unsigned _UINT8::b3

bit 3 of the uint8

Definition at line 82 of file all_generic.h.

◆ b4

unsigned _UINT8::b4

bit 4 of the uint8

Definition at line 85 of file all_generic.h.

◆ b5

unsigned _UINT8::b5

bit 5 of the uint8

Definition at line 88 of file all_generic.h.

◆ b6

unsigned _UINT8::b6

bit 6 of the uint8

Definition at line 91 of file all_generic.h.

◆ b7

unsigned _UINT8::b7

bit 7 (MSb) of the uint8

Definition at line 94 of file all_generic.h.

◆ MSN

unsigned _UINT8::MSN

Least significant nibble of the uint8

Definition at line 68 of file all_generic.h.

◆ u8

uint8_t _UINT8::u8

uint8 viewed as an uint8

Definition at line 65 of file all_generic.h.


The documentation for this union was generated from the following file: