Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::etg::UnitParts Struct Reference

The four bytes of an ETG.1004 unit notation value, split out. More...

#include <esi_unit.h>

Public Attributes

uint8_t prefix = 0
 
uint8_t numerator = 0
 
uint8_t denominator = 0
 
uint8_t reserved = 0
 

Detailed Description

The four bytes of an ETG.1004 unit notation value, split out.

A <Unit> value such as #xFD260000 packs, most significant byte first: [prefix, numerator, denominator, reserved]. Here 0xFD is the SI prefix milli (the byte is a two's-complement power-of-ten exponent, so 0xFD is −3), 0x26 is volt and 0x00 is the dimensionless denominator — together "mV".

Member Data Documentation

◆ denominator

uint8_t mm::etg::UnitParts::denominator = 0

◆ numerator

uint8_t mm::etg::UnitParts::numerator = 0

◆ prefix

uint8_t mm::etg::UnitParts::prefix = 0

◆ reserved

uint8_t mm::etg::UnitParts::reserved = 0

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