NVIDIA DRIVE OS Linux API Reference

5.1.3.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ccp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 
17 #ifndef CCP_H
18 #define CCP_H
19 #include <stdint.h>
20 
35 typedef enum
36 {
51 
52 
56 typedef enum {
57  NVCCP_GROUP_A = 0x00,
58  NVCCP_GROUP_B = 0x01,
59  NVCCP_GROUP_C = 0x02,
62 
66 typedef enum{
67  /* Camera group A */
68  NVCCP_CAM_A0 = 0x01,
69  NVCCP_CAM_A1 = 0x02,
70  NVCCP_CAM_A2 = 0x04,
71  NVCCP_CAM_A3 = 0x08,
72  /* Camera group B */
73  NVCCP_CAM_B0 = 0x10,
74  NVCCP_CAM_B1 = 0x20,
75  NVCCP_CAM_B2 = 0x40,
76  NVCCP_CAM_B3 = 0x80,
77  /* Camera group C */
78  NVCCP_CAM_C0 = 0x0100,
79  NVCCP_CAM_C1 = 0x0200,
80  NVCCP_CAM_C2 = 0x0400,
81  NVCCP_CAM_C3 = 0x0800,
82  /* Camera group D */
83  NVCCP_CAM_D0 = 0x1000,
84  NVCCP_CAM_D1 = 0x2000,
85  NVCCP_CAM_D2 = 0x4000,
86  NVCCP_CAM_D3 = 0x8000
87 } nvccp_cam_id;
88 
92 typedef enum {
93  NVCCP_TEGRA_A = 0x41,
94  NVCCP_TEGRA_B = 0x42,
97 
102 typedef enum {
106 
114 
122 
129 
136 
143 
150 
157 
164 
171 
178 
185 
192 
198 nvccp_return_t nvccp_get_aggreg_pwr_status(uint8_t *cam_group);
199 
207 #endif
nvccp_cam_mode
Defines the mode in which to request ownership (nvccp_request_ownership()) or release ownership (nvcc...
Definition: ccp.h:102
nvccp_return_t nvccp_release_ownership(nvccp_cam_group_id cam_group, nvccp_cam_mode cam_master)
Releases ownership for selected camera group.
nvccp_tegra_id
Defines the tegra ID.
Definition: ccp.h:92
nvccp_return_t nvccp_set_cam_pwr_off(nvccp_cam_group_id cam_group)
Turns off power for all cameras in the aggregator.
nvccp_return_t nvccp_set_cam_unit_pwr_off(nvccp_cam_id cam_id)
Turns off power for camera unit.
nvccp_return_t nvccp_set_frsync_disable(nvccp_cam_group_id cam_group)
Sets frsync disable.
nvccp_return_t
Defines values returned to the user library on a nvccp function call depicting the status...
Definition: ccp.h:35
nvccp_return_t nvccp_get_aggreg_pwr_status(uint8_t *cam_group)
Gets aggregator power status.
nvccp_return_t nvccp_set_cam_pwr_on(nvccp_cam_group_id cam_group)
Turns on power for all cameras in the aggregator.
nvccp_return_t nvccp_get_cam_unit_pwr_status(uint16_t *cam_id)
Gets camera unit power status.
nvccp_return_t nvccp_set_cam_unit_pwr_on(nvccp_cam_id cam_id)
Turns on power for camera unit.
nvccp_cam_id
Defines the camera ID.
Definition: ccp.h:66
nvccp_return_t nvccp_request_ownership(nvccp_cam_group_id cam_group, nvccp_cam_mode cam_master)
Requests ownership for selected camera group.
nvccp_return_t nvccp_set_aggreg_pwr_off(nvccp_cam_group_id cam_group)
Turns off power for camera aggregator.
nvccp_cam_group_id
Defines the camera group ID.
Definition: ccp.h:56
nvccp_return_t nvccp_set_frsync_enable(nvccp_cam_group_id cam_group)
Sets frsync enable.
nvccp_return_t nvccp_set_aggreg_pwr_on(nvccp_cam_group_id cam_group)
Turns on power for camera aggregator.
nvccp_return_t nvccp_get_frsync_enable_status(uint8_t *cam_group)
Gets frsync enable status.
nvccp_return_t nvccp_set_frsync_owner(nvccp_tegra_id tegra_id)
Sets frame sync (frsync) owner.