Macros | Functions | Variables
ISDataMappings.cpp File Reference
#include <map>
#include <vector>
#include <set>
#include <algorithm>
#include <stdlib.h>
#include <stddef.h>
#include <inttypes.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "ISDataMappings.h"
#include "DataJSON.h"
#include "ISUtilities.h"
#include "ISConstants.h"
#include "data_sets.h"
Include dependency graph for ISDataMappings.cpp:

Go to the source code of this file.

Macros

#define ADD_MAP(map, totalSize, name, member, dataSize, dataType, memberType)   ADD_MAP_NO_VALIDATION(map, totalSize, name, member, dataSize, dataType, memberType)
 
#define ADD_MAP_NO_VALIDATION(map, totalSize, name, member, dataSize, dataType, memberType)   (map)[std::string(name)] = { (uint32_t)offsetof(MAP_TYPE, member), (uint32_t)(dataSize == 0 ? sizeof(memberType) : dataSize), dataType, name }; totalSize += sizeof(memberType);
 
#define ASSERT_SIZE(s)
 

Functions

uint32_t GetDataTypeSize (eDataType dataType)
 
static void PopulateBarometerMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateCanConfigMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateConfigMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateDeviceInfoMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateDiagMsgMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateEvbFlashCfgMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateFlashConfigMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateGPSCNOMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateGpsPosMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateGpsRawMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateGpsRtkMiscMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateGpsRtkRelMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateGpsVelMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateIMUDeltaThetaVelocityMagMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateIMUDeltaThetaVelocityMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateIMUMagnetometerMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateIMUMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t dataId)
 
static void PopulateINS1Mappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateINS2Mappings (map_name_to_info_t mappings[DID_COUNT], uint32_t did)
 
static void PopulateINS4Mappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateMagnetometerMappings (map_name_to_info_t mappings[DID_COUNT], uint32_t id)
 
static void PopulateRtosInfoMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateSizeMappings (uint32_t sizeMap[DID_COUNT])
 
static void PopulateStrobeInTimeMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateSysParamsMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateSysSensorsMappings (map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateTimestampField (uint32_t id, const data_info_t **timestamps, map_name_to_info_t mappings[DID_COUNT])
 
static void PopulateWheelEncoderMappings (map_name_to_info_t mappings[DID_COUNT])
 

Variables

const unsigned char g_asciiToLowerMap [256]
 
CONST_EXPRESSION uint32_t s_eDataTypeSizes [DataTypeCount]
 

Macro Definition Documentation

◆ ADD_MAP

#define ADD_MAP (   map,
  totalSize,
  name,
  member,
  dataSize,
  dataType,
  memberType 
)    ADD_MAP_NO_VALIDATION(map, totalSize, name, member, dataSize, dataType, memberType)

Definition at line 93 of file ISDataMappings.cpp.

◆ ADD_MAP_NO_VALIDATION

#define ADD_MAP_NO_VALIDATION (   map,
  totalSize,
  name,
  member,
  dataSize,
  dataType,
  memberType 
)    (map)[std::string(name)] = { (uint32_t)offsetof(MAP_TYPE, member), (uint32_t)(dataSize == 0 ? sizeof(memberType) : dataSize), dataType, name }; totalSize += sizeof(memberType);

Definition at line 92 of file ISDataMappings.cpp.

◆ ASSERT_SIZE

#define ASSERT_SIZE (   s)

Definition at line 94 of file ISDataMappings.cpp.

Function Documentation

◆ GetDataTypeSize()

uint32_t GetDataTypeSize ( eDataType  dataType)
inline

Get the size of an eDataType

Parameters
dataTypethe data type to get size for
Returns
the size of the data type, or 0 if unknown or variable length (i.e. DataTypeString)

Definition at line 67 of file ISDataMappings.cpp.

◆ PopulateBarometerMappings()

static void PopulateBarometerMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 536 of file ISDataMappings.cpp.

◆ PopulateCanConfigMappings()

static void PopulateCanConfigMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 973 of file ISDataMappings.cpp.

◆ PopulateConfigMappings()

static void PopulateConfigMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 654 of file ISDataMappings.cpp.

◆ PopulateDeviceInfoMappings()

static void PopulateDeviceInfoMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 190 of file ISDataMappings.cpp.

◆ PopulateDiagMsgMappings()

static void PopulateDiagMsgMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 1034 of file ISDataMappings.cpp.

◆ PopulateEvbFlashCfgMappings()

static void PopulateEvbFlashCfgMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 731 of file ISDataMappings.cpp.

◆ PopulateFlashConfigMappings()

static void PopulateFlashConfigMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 665 of file ISDataMappings.cpp.

◆ PopulateGPSCNOMappings()

static void PopulateGPSCNOMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 412 of file ISDataMappings.cpp.

◆ PopulateGpsPosMappings()

static void PopulateGpsPosMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 369 of file ISDataMappings.cpp.

◆ PopulateGpsRawMappings()

static void PopulateGpsRawMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 866 of file ISDataMappings.cpp.

◆ PopulateGpsRtkMiscMappings()

static void PopulateGpsRtkMiscMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 816 of file ISDataMappings.cpp.

◆ PopulateGpsRtkRelMappings()

static void PopulateGpsRtkRelMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 797 of file ISDataMappings.cpp.

◆ PopulateGpsVelMappings()

static void PopulateGpsVelMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 397 of file ISDataMappings.cpp.

◆ PopulateIMUDeltaThetaVelocityMagMappings()

static void PopulateIMUDeltaThetaVelocityMagMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 574 of file ISDataMappings.cpp.

◆ PopulateIMUDeltaThetaVelocityMappings()

static void PopulateIMUDeltaThetaVelocityMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 550 of file ISDataMappings.cpp.

◆ PopulateIMUMagnetometerMappings()

static void PopulateIMUMagnetometerMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 606 of file ISDataMappings.cpp.

◆ PopulateIMUMappings()

static void PopulateIMUMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  dataId 
)
static

Definition at line 225 of file ISDataMappings.cpp.

◆ PopulateINS1Mappings()

static void PopulateINS1Mappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 298 of file ISDataMappings.cpp.

◆ PopulateINS2Mappings()

static void PopulateINS2Mappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  did 
)
static

Definition at line 323 of file ISDataMappings.cpp.

◆ PopulateINS4Mappings()

static void PopulateINS4Mappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 346 of file ISDataMappings.cpp.

◆ PopulateMagnetometerMappings()

static void PopulateMagnetometerMappings ( map_name_to_info_t  mappings[DID_COUNT],
uint32_t  id 
)
static

Definition at line 523 of file ISDataMappings.cpp.

◆ PopulateRtosInfoMappings()

static void PopulateRtosInfoMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 895 of file ISDataMappings.cpp.

◆ PopulateSizeMappings()

static void PopulateSizeMappings ( uint32_t  sizeMap[DID_COUNT])
static

Definition at line 98 of file ISDataMappings.cpp.

◆ PopulateStrobeInTimeMappings()

static void PopulateStrobeInTimeMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 881 of file ISDataMappings.cpp.

◆ PopulateSysParamsMappings()

static void PopulateSysParamsMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 248 of file ISDataMappings.cpp.

◆ PopulateSysSensorsMappings()

static void PopulateSysSensorsMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 270 of file ISDataMappings.cpp.

◆ PopulateTimestampField()

static void PopulateTimestampField ( uint32_t  id,
const data_info_t **  timestamps,
map_name_to_info_t  mappings[DID_COUNT] 
)
static

Definition at line 169 of file ISDataMappings.cpp.

◆ PopulateWheelEncoderMappings()

static void PopulateWheelEncoderMappings ( map_name_to_info_t  mappings[DID_COUNT])
static

Definition at line 637 of file ISDataMappings.cpp.

Variable Documentation

◆ g_asciiToLowerMap

const unsigned char g_asciiToLowerMap[256]
Initial value:
=
{
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,
41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q',
'r','s','t','u','v','w','x','y','z',91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,
119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,
154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,
189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,
224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255
}

Definition at line 40 of file ISDataMappings.cpp.

◆ s_eDataTypeSizes

CONST_EXPRESSION uint32_t s_eDataTypeSizes[DataTypeCount]
Initial value:
=
{
(uint32_t)sizeof(int8_t),
(uint32_t)sizeof(uint8_t),
(uint32_t)sizeof(int16_t),
(uint32_t)sizeof(uint16_t),
(uint32_t)sizeof(int32_t),
(uint32_t)sizeof(uint32_t),
(uint32_t)sizeof(int64_t),
(uint32_t)sizeof(uint64_t),
(uint32_t)sizeof(float),
(uint32_t)sizeof(double),
(uint32_t)0,
(uint32_t)0
}

Definition at line 51 of file ISDataMappings.cpp.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59