PIC24 Support Libraries
Data Fields
UINT8 Union Reference

#include <all_generic.h>

Data Fields

uint8_t _uint8
 
uint8_t u8
 
unsigned MSN: 4
 
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 58 of file all_generic.h.

Field Documentation

◆ _uint8

uint8_t UINT8::_uint8

uint8 viewed as an uint8

Definition at line 60 of file all_generic.h.

◆ b0

unsigned UINT8::b0

bit 0 (the LSb) of the uint8

Definition at line 70 of file all_generic.h.

◆ b1

unsigned UINT8::b1

bit 1 of the uint8

Definition at line 73 of file all_generic.h.

◆ b2

unsigned UINT8::b2

bit 2 of the uint8

Definition at line 76 of file all_generic.h.

◆ b3

unsigned UINT8::b3

bit 3 of the uint8

Definition at line 79 of file all_generic.h.

◆ b4

unsigned UINT8::b4

bit 4 of the uint8

Definition at line 82 of file all_generic.h.

◆ b5

unsigned UINT8::b5

bit 5 of the uint8

Definition at line 85 of file all_generic.h.

◆ b6

unsigned UINT8::b6

bit 6 of the uint8

Definition at line 88 of file all_generic.h.

◆ b7

unsigned UINT8::b7

bit 7 (MSb) of the uint8

Definition at line 91 of file all_generic.h.

◆ MSN

unsigned UINT8::MSN

Least significant nibble of the uint8

Definition at line 65 of file all_generic.h.

◆ u8

uint8_t UINT8::u8

uint8 viewed as an uint8

Definition at line 62 of file all_generic.h.


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