PIC24 Support Libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
UINT8 Union Reference

#include <all_generic.h>

Data Fields

uint8 _uint8
 
uint8 u8
 
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 59 of file all_generic.h.

Field Documentation

uint8 UINT8::_uint8

uint8 viewed as an uint8

Definition at line 61 of file all_generic.h.

unsigned UINT8::b0

bit 0 (the LSb) of the uint8

Definition at line 67 of file all_generic.h.

unsigned UINT8::b1

bit 1 of the uint8

Definition at line 70 of file all_generic.h.

unsigned UINT8::b2

bit 2 of the uint8

Definition at line 73 of file all_generic.h.

unsigned UINT8::b3

bit 3 of the uint8

Definition at line 76 of file all_generic.h.

unsigned UINT8::b4

bit 4 of the uint8

Definition at line 79 of file all_generic.h.

unsigned UINT8::b5

bit 5 of the uint8

Definition at line 82 of file all_generic.h.

unsigned UINT8::b6

bit 6 of the uint8

Definition at line 85 of file all_generic.h.

unsigned UINT8::b7

bit 7 (MSb) of the uint8

Definition at line 88 of file all_generic.h.

uint8 UINT8::u8

uint8 viewed as an uint8

Definition at line 63 of file all_generic.h.


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