All Data Structures Functions Variables Enumerations Enumerator Groups Pages
sys_ex_data Union Reference

Sys_ex datafield definition. More...

#include <EO3000I_API.h>

Collaboration diagram for sys_ex_data:

Data Structures

struct  _data
 Datafiled structer for data telegrams (IDX > 0) More...
struct  header
 Datafiled structer for header telegrams (IDX = 0) More...

Data Fields

struct sys_ex_data::header header
struct sys_ex_data::_data _data

Detailed Description

Sys_ex datafield definition.

31 24 23 23 22 16 15 12 11 8 7 0|31 0
| u8LengthH | u1LengthL | u7ManufacturerIdH | u4ManufacturerIdL | u4FnNumH | u8FnNumL | u32Data |

This byte ordering is correct, it is mixed up like this because Keil interprets bytes from the right to left. That's why we had to divide the 16bit variables in high and low parts. With this definition we get a structure like showed on the picture beyond