ERIS CORE

◆ create() [1/3]

bool FLASHMEM SvcDataDictionary::create ( const char *  key,
float32_t  val 
)

create a global r/w record

Parameters
key
val
Returns
true
false

Definition at line 74 of file svcDataDictionary.cpp.

74  {
75  if (!copyKey(key)) return false;
76  record[next].val.float32_val = val;
77  record[next].owner = 0;
80  record[next].key_hash = hash(key);
81  next++;
82  return true;
83 }
@ DDRT_READWRITE
@ DDDT_FLOAT32
svcDataDictionaryRecord record[DATADICT_KEYVALUE_PAIRS]
bool copyKey(const char *key)
uint32_t hash(const char *s)
hashing function used to accelerate searches
svcDataDictionaryRecordType record_type
svcDataDictionaryDataType data_type

References copyKey(), svcDataDictionaryRecord::data_type, DDDT_FLOAT32, DDRT_READWRITE, value_container::float32_val, hash(), svcDataDictionaryRecord::key_hash, next, svcDataDictionaryRecord::owner, record, svcDataDictionaryRecord::record_type, and svcDataDictionaryRecord::val.

+ Here is the call graph for this function: