diff options
author | Michael Auchter <michael.auchter@ni.com> | 2019-09-09 16:46:14 -0500 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-05-31 05:28:47 -0700 |
commit | 530cb0a8aaaac906fe124086e780d6651241b0ad (patch) | |
tree | 8a5301163392b3d0c1642da0cb9ba2a9ea176401 /mpm/tools/tlv_eeprom/eeprom-pids.h | |
parent | fa997d52cc62c3c39f5b7560890e31d41e4eb9e9 (diff) | |
download | uhd-530cb0a8aaaac906fe124086e780d6651241b0ad.tar.gz uhd-530cb0a8aaaac906fe124086e780d6651241b0ad.tar.bz2 uhd-530cb0a8aaaac906fe124086e780d6651241b0ad.zip |
mpm: add tlv_eeprom
Add support for parsing an eeprom that uses tag-length-value to store
contents.
Co-authored-by: Michael Auchter <michael.auchter@ni.com>
Co-authored-by: Virendra Kakade <virendra.kakade@ni.com>
Co-authored-by: Cristina Fuentes <cristina.fuentes@ni.com>
Diffstat (limited to 'mpm/tools/tlv_eeprom/eeprom-pids.h')
-rw-r--r-- | mpm/tools/tlv_eeprom/eeprom-pids.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mpm/tools/tlv_eeprom/eeprom-pids.h b/mpm/tools/tlv_eeprom/eeprom-pids.h new file mode 100644 index 000000000..8358d6384 --- /dev/null +++ b/mpm/tools/tlv_eeprom/eeprom-pids.h @@ -0,0 +1,21 @@ +// +// Copyright 2021 Ettus Research, a National Instruments Company +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#pragma once + +#include <stdint.h> + +struct pid_info { + uint16_t pid; + const char* name; + const char* description; + uint16_t rev_offset; +}; + +const struct pid_info* get_info_from_pid(uint16_t pid); +const char* get_name_from_pid(uint16_t pid); +const char* get_description_from_pid(uint16_t pid); +uint16_t get_rev_offset_from_pid(uint16_t pid); |