Skip to content

Commit

Permalink
Remove accessor method for now due to issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
microstrain-sam committed Sep 20, 2024
1 parent 070fbcd commit 43f418d
Show file tree
Hide file tree
Showing 12 changed files with 1,005 additions and 1,005 deletions.
452 changes: 226 additions & 226 deletions src/cpp/mip/metadata/definitions/commands_3dm.hpp

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions src/cpp/mip/metadata/definitions/commands_aiding.hpp

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions src/cpp/mip/metadata/definitions/commands_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct MetadataFor<commands_base::BaseDeviceInfo>
/* .name = */ "firmware_version",
/* .docs = */ "",
/* .type = */ {Type::U16, nullptr},
/* .accessor = */ utils::access<type, uint16_t, &type::firmware_version>,
/* .accessor = */ nullptr, //utils::access<type, uint16_t, &type::firmware_version>,
/* .attributes = */ NO_FUNCTIONS,
/* .count = */ 1,
/* .condition = */ {},
Expand All @@ -63,7 +63,7 @@ struct MetadataFor<commands_base::BaseDeviceInfo>
/* .name = */ "model_name",
/* .docs = */ "",
/* .type = */ {Type::CHAR, nullptr},
/* .accessor = */ utils::access<type, char, &type::model_name>,
/* .accessor = */ nullptr, //utils::access<type, char, &type::model_name>,
/* .attributes = */ NO_FUNCTIONS,
/* .count = */ 16,
/* .condition = */ {},
Expand All @@ -72,7 +72,7 @@ struct MetadataFor<commands_base::BaseDeviceInfo>
/* .name = */ "model_number",
/* .docs = */ "",
/* .type = */ {Type::CHAR, nullptr},
/* .accessor = */ utils::access<type, char, &type::model_number>,
/* .accessor = */ nullptr, //utils::access<type, char, &type::model_number>,
/* .attributes = */ NO_FUNCTIONS,
/* .count = */ 16,
/* .condition = */ {},
Expand All @@ -81,7 +81,7 @@ struct MetadataFor<commands_base::BaseDeviceInfo>
/* .name = */ "serial_number",
/* .docs = */ "",
/* .type = */ {Type::CHAR, nullptr},
/* .accessor = */ utils::access<type, char, &type::serial_number>,
/* .accessor = */ nullptr, //utils::access<type, char, &type::serial_number>,
/* .attributes = */ NO_FUNCTIONS,
/* .count = */ 16,
/* .condition = */ {},
Expand All @@ -90,7 +90,7 @@ struct MetadataFor<commands_base::BaseDeviceInfo>
/* .name = */ "lot_number",
/* .docs = */ "",
/* .type = */ {Type::CHAR, nullptr},
/* .accessor = */ utils::access<type, char, &type::lot_number>,
/* .accessor = */ nullptr, //utils::access<type, char, &type::lot_number>,
/* .attributes = */ NO_FUNCTIONS,
/* .count = */ 16,
/* .condition = */ {},
Expand All @@ -99,7 +99,7 @@ struct MetadataFor<commands_base::BaseDeviceInfo>
/* .name = */ "device_options",
/* .docs = */ "",
/* .type = */ {Type::CHAR, nullptr},
/* .accessor = */ utils::access<type, char, &type::device_options>,
/* .accessor = */ nullptr, //utils::access<type, char, &type::device_options>,
/* .attributes = */ NO_FUNCTIONS,
/* .count = */ 16,
/* .condition = */ {},
Expand All @@ -124,7 +124,7 @@ struct MetadataFor<commands_base::GetDeviceInfo::Response>
/* .name = */ "device_info",
/* .docs = */ "",
/* .type = */ {Type::STRUCT, &MetadataFor<commands_base::BaseDeviceInfo>::value},
/* .accessor = */ utils::access<type, commands_base::BaseDeviceInfo, &type::device_info>,
/* .accessor = */ nullptr, //utils::access<type, commands_base::BaseDeviceInfo, &type::device_info>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ 1,
/* .condition = */ {},
Expand Down Expand Up @@ -170,7 +170,7 @@ struct MetadataFor<commands_base::GetDeviceDescriptors::Response>
/* .name = */ "descriptors",
/* .docs = */ "",
/* .type = */ {Type::U16, nullptr},
/* .accessor = */ utils::access<type, uint16_t, &type::descriptors>,
/* .accessor = */ nullptr, //utils::access<type, uint16_t, &type::descriptors>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ {0, microstrain::Index(1) /* descriptors_count */},
/* .condition = */ {},
Expand All @@ -179,7 +179,7 @@ struct MetadataFor<commands_base::GetDeviceDescriptors::Response>
/* .name = */ "descriptors_count",
/* .docs = */ "",
/* .type = */ {Type::U8, nullptr},
/* .accessor = */ utils::access<type, uint8_t, &type::descriptors_count>,
/* .accessor = */ nullptr, //utils::access<type, uint8_t, &type::descriptors_count>,
/* .attributes = */ {false, false, false, false, false, /*echo*/false, /*virtual*/true},
/* .count = */ 1,
/* .condition = */ {},
Expand Down Expand Up @@ -225,7 +225,7 @@ struct MetadataFor<commands_base::BuiltInTest::Response>
/* .name = */ "result",
/* .docs = */ "",
/* .type = */ {Type::U32, nullptr},
/* .accessor = */ utils::access<type, uint32_t, &type::result>,
/* .accessor = */ nullptr, //utils::access<type, uint32_t, &type::result>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ 1,
/* .condition = */ {},
Expand Down Expand Up @@ -288,7 +288,7 @@ struct MetadataFor<commands_base::GetExtendedDescriptors::Response>
/* .name = */ "descriptors",
/* .docs = */ "",
/* .type = */ {Type::U16, nullptr},
/* .accessor = */ utils::access<type, uint16_t, &type::descriptors>,
/* .accessor = */ nullptr, //utils::access<type, uint16_t, &type::descriptors>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ {0, microstrain::Index(1) /* descriptors_count */},
/* .condition = */ {},
Expand All @@ -297,7 +297,7 @@ struct MetadataFor<commands_base::GetExtendedDescriptors::Response>
/* .name = */ "descriptors_count",
/* .docs = */ "",
/* .type = */ {Type::U8, nullptr},
/* .accessor = */ utils::access<type, uint8_t, &type::descriptors_count>,
/* .accessor = */ nullptr, //utils::access<type, uint8_t, &type::descriptors_count>,
/* .attributes = */ {false, false, false, false, false, /*echo*/false, /*virtual*/true},
/* .count = */ 1,
/* .condition = */ {},
Expand Down Expand Up @@ -343,7 +343,7 @@ struct MetadataFor<commands_base::ContinuousBit::Response>
/* .name = */ "result",
/* .docs = */ "Device-specific bitfield (128 bits). See device user manual.\nBits are least-significant-byte first. For example, bit 0 is\nlocated at bit 0 of result[0], bit 1 is located at bit 1 of result[0],\nbit 8 is located at bit 0 of result[1], and bit 127 is located at bit\n7 of result[15].",
/* .type = */ {Type::U8, nullptr},
/* .accessor = */ utils::access<type, uint8_t, &type::result>,
/* .accessor = */ nullptr, //utils::access<type, uint8_t, &type::result>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ 16,
/* .condition = */ {},
Expand Down Expand Up @@ -389,7 +389,7 @@ struct MetadataFor<commands_base::CommSpeed::Response>
/* .name = */ "port",
/* .docs = */ "Port ID number, starting with 1. When function is SAVE, LOAD, or DEFAULT, this can be 0 to apply to all ports. See the device user manual for details.",
/* .type = */ {Type::U8, nullptr},
/* .accessor = */ utils::access<type, uint8_t, &type::port>,
/* .accessor = */ nullptr, //utils::access<type, uint8_t, &type::port>,
/* .attributes = */ {true, true, true, true, true, /*echo*/true},
/* .count = */ 1,
/* .condition = */ {},
Expand All @@ -398,7 +398,7 @@ struct MetadataFor<commands_base::CommSpeed::Response>
/* .name = */ "baud",
/* .docs = */ "Port baud rate. Must be a supported rate.",
/* .type = */ {Type::U32, nullptr},
/* .accessor = */ utils::access<type, uint32_t, &type::baud>,
/* .accessor = */ nullptr, //utils::access<type, uint32_t, &type::baud>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ 1,
/* .condition = */ {},
Expand Down Expand Up @@ -428,7 +428,7 @@ struct MetadataFor<commands_base::CommSpeed>
/* .name = */ "port",
/* .docs = */ "Port ID number, starting with 1. When function is SAVE, LOAD, or DEFAULT, this can be 0 to apply to all ports. See the device user manual for details.",
/* .type = */ {Type::U8, nullptr},
/* .accessor = */ utils::access<type, uint8_t, &type::port>,
/* .accessor = */ nullptr, //utils::access<type, uint8_t, &type::port>,
/* .attributes = */ {true, true, true, true, true, /*echo*/true},
/* .count = */ 1,
/* .condition = */ {},
Expand All @@ -437,7 +437,7 @@ struct MetadataFor<commands_base::CommSpeed>
/* .name = */ "baud",
/* .docs = */ "Port baud rate. Must be a supported rate.",
/* .type = */ {Type::U32, nullptr},
/* .accessor = */ utils::access<type, uint32_t, &type::baud>,
/* .accessor = */ nullptr, //utils::access<type, uint32_t, &type::baud>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ 1,
/* .condition = */ {},
Expand Down Expand Up @@ -486,7 +486,7 @@ struct MetadataFor<commands_base::GpsTimeUpdate>
/* .name = */ "field_id",
/* .docs = */ "Determines how to interpret value.",
/* .type = */ {Type::ENUM, &MetadataFor<commands_base::GpsTimeUpdate::FieldId>::value},
/* .accessor = */ utils::access<type, commands_base::GpsTimeUpdate::FieldId, &type::field_id>,
/* .accessor = */ nullptr, //utils::access<type, commands_base::GpsTimeUpdate::FieldId, &type::field_id>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ 1,
/* .condition = */ {},
Expand All @@ -495,7 +495,7 @@ struct MetadataFor<commands_base::GpsTimeUpdate>
/* .name = */ "value",
/* .docs = */ "Week number or time of week, depending on the field_id.",
/* .type = */ {Type::U32, nullptr},
/* .accessor = */ utils::access<type, uint32_t, &type::value>,
/* .accessor = */ nullptr, //utils::access<type, uint32_t, &type::value>,
/* .attributes = */ {true, false, false, false, false},
/* .count = */ 1,
/* .condition = */ {},
Expand Down
Loading

0 comments on commit 43f418d

Please sign in to comment.