This function reads 8 bytes from a buffer, at the specified offset, interpreting them as a stru_large_int structure and writing the value read into the given structure.
The mirror function is set_i64().
Syntax |
get_i64 (buffer, i32 offset, stru_large_int data) |
---|---|
buffer |
Can be an array, structure, register |
offset |
Offset in bytes |
data |
Variable of type stru_large_int in which to save the value read |
Validity |
Rule, Task |
Note |
Once you have loaded the example program on a control, via a shell you can verify the functioning of get_i64. 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.
|