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

Data Fields

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

Detailed Description

A big (32 bit) value in different resolutions.

This type is for any (non negative) counting or other 32 bit value or for use as a result "accumulator", even in "wrong" big endianess.
It features 8, 16 and 32 bit resolution as well as direct access to all four bytes.

See also:
msClock(void)
ucnt16_t

Field Documentation

uint16_t v16[2]

The value as 16 bit unsigned.

Due to unsigned arithmetic properties it is quite simple to base all millisecond resolution timers up to ~32s on this resolution.

uint8_t v8[4]

The values as 8 bit unsigned.

v8[0] would be the 8 bit counter value — in architecture (atmel little) endianess.


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