This function reads 8 bytes from a buffer, at the specified offset, interpreting them as a stru_large_uint structure and writing the value read into the given structure.
The mirror function is set_u64().
Syntax |
get_u64 (buffer, i32 offset, stru_large_uint data) |
---|---|
buffer |
Can be an array, structure, register |
offset |
Offset in bytes |
data |
Variable of type stru_large_uint in which to save the read value |
Validity |
Rule, Task |
Note |
Once you have loaded the example program on a control, via a shell you can verify the functioning of get_u64. To do this, set a value between 0 and 127 - sizeof(my_data) to the offset variable, then set a non-zero value to the variables val_high and val_low, then verify that the my_data structure is equal to set_val.
|