16#ifndef SIMICS_SYSTEMC_INJECTION_EXTENSION_INJECT_I2C_SLAVE_V2_H
17#define SIMICS_SYSTEMC_INJECTION_EXTENSION_INJECT_I2C_SLAVE_V2_H
33template <
typename TPAYLOAD>
39 attr_value_t *attr, TPAYLOAD *gp) {
42 if (!parser->value(&address))
48 }
else if (key ==
"read") {
52 }
else if (key ==
"write") {
54 if (!parser->value(&value))
60 }
else if (key ==
"stop") {
64 }
else if (key ==
"addresses") {
#define ATTR_DICT_PARSER_NAMESPACE(ns)
Definition: attr_dict_parser.h:34
Definition: attr_dict_parser.h:40
Definition: inject_base.h:45
Definition: extension_setter.h:34
Definition: inject_i2c_slave_v2.h:34
virtual bool setValue(AttrDictParser *parser, const std::string &key, attr_value_t *attr, TPAYLOAD *gp)
Definition: inject_i2c_slave_v2.h:38
Definition: pci_bus_interface.h:24