172 #ifndef ti_drivers_Camera__include 173 #define ti_drivers_Camera__include 199 #define CAMERA_CMD_RESERVED (32) 213 #define CAMERA_STATUS_RESERVED (-32) 228 #define CAMERA_STATUS_SUCCESS (0) 236 #define CAMERA_STATUS_ERROR (-1) 245 #define CAMERA_STATUS_UNDEFINEDCMD (-2) 265 #define Camera_WAIT_FOREVER (~(0U)) 469 size_t bufferlen,
size_t *frameLen);
563 extern int_fast16_t
Camera_control(Camera_Handle handle, uint_fast16_t cmd,
644 extern int_fast16_t
Camera_capture(Camera_Handle handle,
void *buffer,
645 size_t bufferlen,
size_t *frameLen);
Camera_StartCaptureConfig startConfig
Definition: Camera.h:425
Camera_StopCaptureConfig_
Camera stop capture configuration.
Definition: Camera.h:369
Camera_CloseFxn closeFxn
Definition: Camera.h:478
uint32_t captureTimeout
Definition: Camera.h:428
void * object
Definition: Camera.h:509
Camera_HSyncPolarity hsyncPolarity
Definition: Camera.h:407
Camera_StartCaptureConfig_
Camera start capture configuration.
Definition: Camera.h:379
int_fast16_t(* Camera_ControlFxn)(Camera_Handle handle, uint_fast16_t cmd, void *arg)
A function pointer to a driver specific implementation of Camera_control().
Definition: Camera.h:447
void(* Camera_Callback)(Camera_Handle handle, void *buf, size_t frameLength)
The definition of a callback function used by the Camera driver when used in Camera_MODE_CALLBACK.
Definition: Camera.h:283
Camera_VSyncPolarity vsyncPolarity
Definition: Camera.h:410
Camera_VSyncPolarity_
Camera VSync polarity.
Definition: Camera.h:322
struct Camera_Config_ * Camera_Handle
A handle that is returned from a Camera_open() call.
Definition: Camera.h:270
Camera_PixelClkConfig_
Camera pixel clock configuration.
Definition: Camera.h:332
struct Camera_Params_ Camera_Params
Camera Parameters.
void Camera_init(void)
Function to initializes the Camera module.
Camera_OpenFxn openFxn
Definition: Camera.h:487
int_fast16_t Camera_capture(Camera_Handle handle, void *buffer, size_t bufferlen, size_t *frameLen)
Function that handles the Camera capture of a frame.
void(* Camera_InitFxn)(Camera_Handle handle)
A function pointer to a driver specific implementation of Camera_init().
Definition: Camera.h:455
struct Camera_FxnTable_ Camera_FxnTable
The definition of a Camera function table that contains the required set of functions to control a sp...
Camera_Handle Camera_open(uint_least8_t index, Camera_Params *params)
Function to initialize a given Camera peripheral specified by the particular index value...
void Camera_Params_init(Camera_Params *params)
Function to initialize the Camera_Params structure to its defaults.
Camera_CaptureMode_
Camera capture mode settings.
Definition: Camera.h:292
enum Camera_CaptureMode_ Camera_CaptureMode
Camera capture mode settings.
void(* Camera_CloseFxn)(Camera_Handle handle)
A function pointer to a driver specific implementation of Camera_close().
Definition: Camera.h:441
Camera_Handle(* Camera_OpenFxn)(Camera_Handle handle, Camera_Params *params)
A function pointer to a driver specific implementation of Camera_open().
Definition: Camera.h:461
The definition of a Camera function table that contains the required set of functions to control a sp...
Definition: Camera.h:476
enum Camera_StopCaptureConfig_ Camera_StopCaptureConfig
Camera stop capture configuration.
Camera_InitFxn initFxn
Definition: Camera.h:484
void Camera_close(Camera_Handle handle)
Function to close a Camera peripheral specified by the Camera handle.
int_fast16_t(* Camera_CaptureFxn)(Camera_Handle handle, void *buffer, size_t bufferlen, size_t *frameLen)
A function pointer to a driver specific implementation of Camera_capture().
Definition: Camera.h:468
uint32_t outputClock
Definition: Camera.h:404
Camera_CaptureFxn captureFxn
Definition: Camera.h:490
enum Camera_StartCaptureConfig_ Camera_StartCaptureConfig
Camera start capture configuration.
void * custom
Definition: Camera.h:434
enum Camera_HSyncPolarity_ Camera_HSyncPolarity
Camera HSync polarity.
Camera_StopCaptureConfig stopConfig
Definition: Camera.h:422
struct Camera_Config_ Camera_Config
Camera Global configuration.
Camera_Callback captureCallback
Definition: Camera.h:431
Camera_HSyncPolarity_
Camera HSync polarity.
Definition: Camera.h:312
int_fast16_t Camera_control(Camera_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given Camera_Handle.
enum Camera_ByteOrder_ Camera_ByteOrder
Camera byte order.
enum Camera_PixelClkConfig_ Camera_PixelClkConfig
Camera pixel clock configuration.
Camera_PixelClkConfig pixelClkConfig
Definition: Camera.h:413
enum Camera_IfSynchoronisation_ Camera_IfSynchoronisation
Camera interface synchronization.
Camera_ByteOrder_
Camera byte order.
Definition: Camera.h:348
Camera_FxnTable const * fxnTablePtr
Definition: Camera.h:506
enum Camera_VSyncPolarity_ Camera_VSyncPolarity
Camera VSync polarity.
Camera Parameters.
Definition: Camera.h:399
Camera_IfSynchoronisation_
Camera interface synchronization.
Definition: Camera.h:359
Camera_ByteOrder byteOrder
Definition: Camera.h:416
Camera_ControlFxn controlFxn
Definition: Camera.h:481
Camera Global configuration.
Definition: Camera.h:504
void const * hwAttrs
Definition: Camera.h:512
Camera_CaptureMode captureMode
Definition: Camera.h:401
Camera_IfSynchoronisation interfaceSync
Definition: Camera.h:419