| 1 |
|
| 2 |
|
| 3 |
#ifndef __VENDORCODE_GOOGLE_CHROMEOS_CAMERA_H |
| 4 |
#define __VENDORCODE_GOOGLE_CHROMEOS_CAMERA_H |
| 5 |
|
| 6 |
#include <stdint.h> |
| 7 |
|
| 8 |
#define CROS_CAMERA_INFO_MAGIC "CrOS" |
| 9 |
#define CROS_CAMERA_INFO_VERSION 1 |
| 10 |
#define CROS_CAMERA_INFO_SIZE_MIN 0x0a |
| 11 |
|
| 12 |
struct cros_camera_info { |
| 13 |
uint8_t magic[4]; |
| 14 |
uint16_t crc16; |
| 15 |
uint8_t version; |
| 16 |
uint8_t size; |
| 17 |
uint16_t data_format; |
| 18 |
uint16_t module_pid; |
| 19 |
uint8_t module_vid[2]; |
| 20 |
uint8_t sensor_vid[2]; |
| 21 |
uint16_t sensor_pid; |
| 22 |
}; |
| 23 |
|
| 24 |
|
| 25 |
int check_cros_camera_info(const struct cros_camera_info *info); |
| 26 |
|
| 27 |
#endif |