Group CIRegister¶
The functions in this section provide access to register nodes. This includes access to the node, its address and length, and reference.
Public Functions¶
| Type | Name |
|---|---|
| spinRegisterGet (spinNodeHandle hNode, uint8_t * pBuf, int64_t length) |
|
| spinRegisterGetAddress (spinNodeHandle hNode, int64_t * pAddress) |
|
| spinRegisterGetEx (spinNodeHandle hNode, bool8_t bVerify, bool8_t bIgnoreCache, uint8_t * pBuf, int64_t length) |
|
| spinRegisterGetLength (spinNodeHandle hNode, int64_t * pLength) |
|
| spinRegisterSet (spinNodeHandle hNode, const uint8_t * pBuf, int64_t length) |
|
| spinRegisterSetEx (spinNodeHandle hNode, bool8_t bVerify, const uint8_t * pBuf, int64_t length) |
|
| spinRegisterSetReference (spinNodeHandle hNode, spinNodeHandle hRef) |
Public Functions Documentation¶
function spinRegisterGet¶
Retrieves the value of a register node
See also: spinError
Parameters:
hNodeThe register node of the value to retrievepBufThe unsigned integer buffer in which the value is returnedlengthThe integer pointer in which the length of the register array is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinRegisterGetAddress¶
Retrieves the address of a register node
See also: spinError
Parameters:
hNodeThe register node of the address to retrievepAddressThe integer pointer in which the address is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinRegisterGetEx¶
spinRegisterGetEx (
spinNodeHandle hNode,
bool8_t bVerify,
bool8_t bIgnoreCache,
uint8_t * pBuf,
int64_t length
)
Retrieves the value of a register node; manually set whether to verify the node and whether to ignore the cache
See also: spinError
Parameters:
hNodeThe register node of the value to retrievebVerifyThe boolean of whether to verify the nodeIgnoreCacheThe boolean of whether to ignore the cachepBufThe unsigned integer buffer in which the value is returnedlengthThe integer pointer in which the length of the register array is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinRegisterGetLength¶
Retrieves the length (in bytes) of the value of a register node
See also: spinError
Parameters:
hNodeThe register node of the length to retrieveplengthThe integer in which the number of bytes is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinRegisterSet¶
Sets the value of a register node
See also: spinError
Parameters:
hNodeThe register node of the value to setpBufThe unsigned integer buffer of the value to setlengthThe number of bytes of the value to set
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinRegisterSetEx¶
Sets the value of a register node; manually set whether to verify the node
See also: spinError
Parameters:
hNodeThe register node of the value to setbVerifyThe boolean of whether to verify the nodepBufThe unsigned integer buffer of the value to setlengthThe number of bytes of the value to set
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinRegisterSetReference¶
Uses a second node as a reference for a register node
See also: spinError
Parameters:
hNodeThe register node that houses the referencehRefThe reference node
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error