weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Data Fields
ucnt16_t Union Reference

Data Fields

uint16_t v16
 The value as 16 bit unsigned.
uint8_t v8 [2]
 The values as 8 bit unsigned.
uint16_t val
 The (full) value (16 bit unsigned)

Detailed Description

A medium (16 bit) value in different resolutions.

This type is for any (non negative) counting or other 16 bit value.
It features 8 and 16 bit resolution as well as direct access to the high and low byte.

See also:
ucnt32_t
Examples:
main.c.

Field Documentation

uint8_t v8[2]

The values as 8 bit unsigned.

v8[0] would be the 8 bit counter value — in architecture (Atmel little) endianess. And v8[1] would be the high byte.

If v16 is used to hold a network (wrong, big) endian value that would be the other way round, of course.

Examples:
main.c.

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