RCP API  6.61.0

◆ rcp_set_list_relative()

rcp_error_t rcp_set_list_relative ( rcp_camera_connection_t con,
rcp_param_t  id,
int32_t  offset 
)

Set list (by value) with relative offset.

This is not like rcp_set_list which changes the entire list, instead this is like calling rcp_set_int, rcp_set_uint, or rcp_set_str on a parameter based on the relative entry in its list.

For example, to set the ISO to the next (higher value) in the list call:

to set the ISO to the previous (lower value) in the list call:

Parameters
[in]conthe camera connection
[in]idthe RCP parameter
[in]offsetoffset to the current index of the list
Returns
RCP_SUCCESS on success.