Brody Kellish / ltc2991_lib

Dependents:   ece495_firmware

Fork of ltc2991_test by Logan Rooper

Embed: (wiki syntax)

« Back to documentation index

LT_union_int32_4bytes Union Reference

LT_union_int32_4bytes Union Reference

This union splits one int32_t (32-bit signed integer) or uint32_t (32-bit unsigned integer) four uint8_t's (8-bit unsigned integers) and vice versa. More...

#include <Linduino.h>

Data Fields

int32_t LT_int32
 32-bit signed integer to be converted to four bytes
uint32_t LT_uint32
 32-bit unsigned integer to be converted to four bytes
uint8_t LT_byte [4]
 4 bytes (unsigned 8-bit integers) to be converted to a 32-bit signed or unsigned integer

Detailed Description

This union splits one int32_t (32-bit signed integer) or uint32_t (32-bit unsigned integer) four uint8_t's (8-bit unsigned integers) and vice versa.

Definition at line 109 of file Linduino.h.


Field Documentation

uint8_t LT_byte[4]

4 bytes (unsigned 8-bit integers) to be converted to a 32-bit signed or unsigned integer

Definition at line 113 of file Linduino.h.

int32_t LT_int32

32-bit signed integer to be converted to four bytes

Definition at line 111 of file Linduino.h.

uint32_t LT_uint32

32-bit unsigned integer to be converted to four bytes

Definition at line 112 of file Linduino.h.