39 #define SENDOR_SUPPORTED_OUTPUTS 7 42 #define SENSOR_REG_TERM 0xFF 44 #define SENSOR_VAL_TERM 0xFF 51 typedef enum _sensorType {
57 typedef enum _sensorStatus {
61 SENSOR_RESOLUTION_NOT_SUPPORTED
65 typedef enum _sensorTwiMode {
66 SENSOR_TWI_REG_BYTE_DATA_BYTE = 0,
67 SENSOR_TWI_REG_2BYTE_DATA_BYTE,
68 SENSOR_TWI_REG_BYTE_DATA_2BYTE
72 typedef enum _sensorResolution {
79 } sensorOutputResolution_t;
82 typedef enum _sensorOutputFormat {
88 } sensorOutputFormat_t;
108 sensorType_t cmos_ccd;
123 extern sendorStatus_t sensor_twi_write_regs(
Twid *pTwid,
126 extern sendorStatus_t sensor_twi_read_regs(
Twid *pTwid,
129 extern sendorStatus_t sensor_setup(
Twid *pTwid,
131 sensorOutputResolution_t resolution);
133 extern sendorStatus_t sensor_get_output(sensorOutputFormat_t *
format,
136 sensorOutputResolution_t resolution);
uint16_t pid_high_reg
Definition: image_sensor_inf.h:111
Definition: image_sensor_inf.h:107
uint8_t supported
Definition: image_sensor_inf.h:100
uint16_t version_mask
Definition: image_sensor_inf.h:115
uint32_t twi_slave_addr
Definition: image_sensor_inf.h:110
Definition: image_sensor_inf.h:91
uint32_t output_height
Definition: image_sensor_inf.h:102
Definition: image_sensor_inf.h:96
sensorOutputResolution_t output_resolution
Definition: image_sensor_inf.h:98
uint16_t pid_low_reg
Definition: image_sensor_inf.h:112
sensorTwiMode_t twi_inf_mode
Definition: image_sensor_inf.h:109
uint16_t pid_low
Definition: image_sensor_inf.h:114
const sensorReg_t * output_setting
Definition: image_sensor_inf.h:103
uint32_t output_width
Definition: image_sensor_inf.h:101
const sensorOutput_t * outputConf[SENDOR_SUPPORTED_OUTPUTS]
Definition: image_sensor_inf.h:117
TWI driver structure. Holds the internal state of the driver.
Definition: twid.h:72
sensorOutputFormat_t output_format
Definition: image_sensor_inf.h:99
uint16_t pid_high
Definition: image_sensor_inf.h:113