Brody Kellish / ltc2991_lib

Dependents:   ece495_firmware

Fork of ltc2991_test by Logan Rooper

Embed: (wiki syntax)

« Back to documentation index

LT_union_uint32_2uint16s Union Reference

LT_union_uint32_2uint16s Union Reference

This union splits one int32_t (32-bit signed integer) or uint32_t (32-bit unsigned integer) into two uint16_t's (16-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
uint16_t LT_uint16 [2]
 2 words (unsigned 16-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) into two uint16_t's (16-bit unsigned integers) and vice versa.

Definition at line 118 of file Linduino.h.


Field Documentation

int32_t LT_int32

32-bit signed integer to be converted to four bytes

Definition at line 120 of file Linduino.h.

uint16_t LT_uint16[2]

2 words (unsigned 16-bit integers) to be converted to a 32-bit signed or unsigned integer

Definition at line 122 of file Linduino.h.

uint32_t LT_uint32

32-bit unsigned integer to be converted to four bytes

Definition at line 121 of file Linduino.h.