| 
    Witmotion IMU Library
    1.3.1~dev_4684448
    
   Open source UART communication library for sensor devices manufactured by WitMotion Shenzhen Co.,Ltd 
   | 
 
Generic structure respresenting the standard 11-byte datapacket defined in Witmotion protocol.
#include <types.h>

Public Attributes | |
| uint8_t | header_byte | 
| Header byte, set constantly to WITMOTION_HEADER_BYTE.  | |
| uint8_t | id_byte | 
| Packet type ID, referring to witmotion_packet_id, otherwise the packet is considered of unknown type.  | |
| union { | |
| int8_t raw_signed [8] | |
| uint8_t raw [8] | |
| int16_t raw_cells [4] | |
| int32_t raw_large [2] | |
| } | datastore | 
8-byte internal data storage array represented as C-style memory union. The stored data represented as int8_t*, uint8_t*, int16_t* or int32_t* array head pointer.  | |
| uint8_t | crc | 
Validation CRC for the packet. Calculated as an equivalent to the following operation: \( crc = \sum_{i=0}^{i < 10}\times\)reinterpret_cast<uint8_t*>(this) + i  | |