IRremote
WordUnion Union Reference

Union to specify parts / manifestations of a 16 bit Word without casts and shifts. More...

#include <LongUnion.h>

Public Attributes

struct {
   uint8_t   LowByte
 
   uint8_t   HighByte
 
UByte
 
struct {
   int8_t   LowByte
 
   int8_t   HighByte
 
Byte
 
uint8_t UBytes [2]
 
int8_t Bytes [2]
 
uint16_t UWord
 
int16_t Word
 
uint8_t * BytePointer
 

Detailed Description

Union to specify parts / manifestations of a 16 bit Word without casts and shifts.

It also supports the compiler generating small code. Usage: WordUnion tWord; tWord.UByte.HighByte = 0x12;

Definition at line 36 of file LongUnion.h.

Member Data Documentation

◆ Byte

struct { ... } WordUnion::Byte

◆ BytePointer

uint8_t* WordUnion::BytePointer

Definition at line 49 of file LongUnion.h.

◆ Bytes

int8_t WordUnion::Bytes[2]

Definition at line 46 of file LongUnion.h.

◆ HighByte [1/2]

uint8_t WordUnion::HighByte

Definition at line 39 of file LongUnion.h.

◆ HighByte [2/2]

int8_t WordUnion::HighByte

Definition at line 43 of file LongUnion.h.

◆ LowByte [1/2]

uint8_t WordUnion::LowByte

Definition at line 38 of file LongUnion.h.

◆ LowByte [2/2]

int8_t WordUnion::LowByte

Definition at line 42 of file LongUnion.h.

◆ UByte

struct { ... } WordUnion::UByte

◆ UBytes

uint8_t WordUnion::UBytes[2]

Definition at line 45 of file LongUnion.h.

◆ UWord

uint16_t WordUnion::UWord

Definition at line 47 of file LongUnion.h.

◆ Word

int16_t WordUnion::Word

Definition at line 48 of file LongUnion.h.


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