| rcp_camera_connection_t * rcp_create_camera_connection | ( | const rcp_camera_connection_info_t * | info | ) |
Create camera connection to the RCP API.
Before this function is called a physical connection must already be established with a camera. For example, this can be a TCP socket or Serial port connection.
The RCP API will attempt to establish a connection to the camera and verify the version to ensure proper communication can be made using this version of the RCP API. Once this has been completed the connection state will change to RCP_CONNECTION_STATE_CONNECTED.
No calls to rcp_get, rcp_get_list, rcp_set_int, rcp_set_uint, or rcp_set_str should be made until the RCP_CONNECTION_STATE_CONNECTED state has been reached.
It is up to the client code to terminate the connection (by calling rcp_delete_camera_connection) if the RCP_CONNECTION_STATE_CONNECTED state has not been reached after an appropriate timeout or one of the error states has been reached.
| [in] | info | structure containing all the required callback information. |