OpenOCD
|
Name Value Pairs, aka: NVP. More...
Data Fields | |
const char * | name |
int | value |
Name Value Pairs, aka: NVP.
Very useful when the number is not a simple index into an array of known string, or there may be multiple strings (aliases) that mean then same thing.
An NVP Table is terminated with ".name = NULL".
During the 'name2value' operation, if no matching string is found the pointer to the terminal element (with p->name == NULL) is returned.
Example:
During the number2name operation, the first matching value is returned.
const char* nvp::name |
Definition at line 62 of file nvp.h.
Referenced by __COMMAND_HANDLER(), COMMAND_HANDLER(), debug_reason_name(), jim_set_result_nvp_unknown(), jtag_tap_handle_event(), nvp_name2value(), nvp_unknown_command_print(), nvp_value2name(), target_process_reset(), target_reset_mode_name(), and target_state_name().
int nvp::value |
Definition at line 63 of file nvp.h.
Referenced by __COMMAND_HANDLER(), COMMAND_HANDLER(), COMMAND_HELPER(), and nvp_value2name().