Register properties have a value represented by raw bytes.
More...
Register properties have a value represented by raw bytes.
◆ ic4_prop_register_get_size()
bool ic4_prop_register_get_size |
( |
struct IC4_PROPERTY * |
prop, |
|
|
uint64_t * |
pSize |
|
) |
| |
Queries the size of a register property.
The size of a register property is not necessarily constant; it can change depending on the value of other properties.
- Parameters
-
[in] | prop | A register property |
[out] | pSize | Pointer to a uint64_t to receive the data size of the register in bytes. |
- Returns
true
on success, otherwise false
.
Use ic4_get_last_error() to query error information.
◆ ic4_prop_register_get_value()
bool ic4_prop_register_get_value |
( |
struct IC4_PROPERTY * |
prop, |
|
|
void * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| |
Reads data from a register property.
- Parameters
-
[in] | prop | A register property |
[out] | buffer | A buffer receiving the data from the property |
[in] | buffer_size | Size of buffer in bytes. Must be equal to the size of the register property. |
- Returns
true
on success, otherwise false
.
Use ic4_get_last_error() to query error information.
- See also
- ic4_prop_register_get_size
-
ic4_prop_register_set_value
◆ ic4_prop_register_set_value()
bool ic4_prop_register_set_value |
( |
struct IC4_PROPERTY * |
prop, |
|
|
const void * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| |
Writes data to a register property.
- Parameters
-
[in] | prop | A register property |
[in] | buffer | A buffer containing the data to be written to the property |
[in] | buffer_size | Size of buffer in bytes. Must be equal to the size of the register property. |
- Returns
true
on success, otherwise false
.
Use ic4_get_last_error() to query error information.
- See also
- ic4_prop_register_get_size
-
ic4_prop_register_get_value