Error codes for RCP_API functions. It is good practice to always check the error codes for every call into the RCP API. For future compatibility it is safer to check that the return value is != RCP_SUCCESS rather than checking for specific errors. The specific error can be used for debugging or informational purposes.
| Enumerator |
|---|
| RCP_SUCCESS | Success.
|
| RCP_ERROR_BAD_PARAM | One of the parameters passed in to the function was bad.
|
| RCP_ERROR_NO_GET | An RCP GET command was attempted for a parameter without a GET command.
|
| RCP_ERROR_NO_GET_LIST | An RCP GET_LIST command was attempted for a parameter without a GET_LIST command.
|
| RCP_ERROR_NO_GET_PERIODIC | An RCP GET_PERIODIC command was attempted for a parameter without a GET_PERIODIC command.
|
| RCP_ERROR_NO_GET_DEFAULT | An RCP GET DEFAULT command was attempted for a parameter without a GET DEFAULT command.
|
| RCP_ERROR_NO_SET | An RCP SET command was attempted for a parameter without a SET command.
|
| RCP_ERROR_SET_WRONG_TYPE | An RCP SET command was attempted for a parameter with the incorrect payload type.
|
| RCP_ERROR_SEND_DATA_TO_CAM_FAILED | To be returned by send_data_to_camera_cb callback if there was an error sending data out to the camera.
|
| RCP_ERROR_TETHERED_RFTP_TRANSFER_IN_PROGRESS | To be returned by _rcp_rftp_retr if a tethered file retrieval was requested while one was already in progress.
|
| RCP_ERROR_NOT_SUPPORTED | This feature is not supported by the connected camera.
|
| RCP_ERROR_INTERNAL | An internal RCP API error occurred.
|