![]() |
CANopen Slave Protocol Stack
Version 7.08.00
|
The CiA 890 technical report (version 1.0.0, January 2023) defines the coding of SI units (international system of units) and prefixes to be used in CiA specifications. It replaces the predecessor document CiA 303-2, which was limited to classic CANopen profiles.
The macro COS890_PHYSICAL_UNIT assembles the 32-bit unit configuration parameter from an SI prefix (Cos890_SI_Prefix_e), an SI numerator unit (Cos890_SI_Unit_e), an SI denominator unit, and a CiA-document-specific byte (profile byte, normally 0).
Macros | |
| #define | COS890_PHYSICAL_UNIT(SiPrefix, SiNumerator, SiDenominator, Profile) |
Enumerations | |
| enum | Cos890_SI_Prefix_e |
| enum | Cos890_SI_Unit_e |
| #define COS890_PHYSICAL_UNIT | ( | SiPrefix, | |
| SiNumerator, | |||
| SiDenominator, | |||
| Profile ) |
| [in] | SiPrefix | value defined by Cos890_SI_Prefix_e |
| [in] | SiNumerator | value defined by Cos890_SI_Unit_e |
| [in] | SiDenominator | value defined by Cos890_SI_Unit_e |
| [in] | Profile | reserved, always 0 |
The notation indexes represent hexadecimal code values for the ISO 80000 series' physical units and prefixes in CiA documents, especially in device, interface and application profiles. The value structure of a configuration parameter, which determines the physical unit, should contain a notation index for SI prefix and notation indexes for SI unit as SI unit numerator and denominator.
| enum Cos890_SI_Prefix_e |
Representation of SI prefixes
| enum Cos890_SI_Unit_e |
Representation of SI units (notation indexes per CiA 890, Tables 2–6).