mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
misc: Add port-specific members to csi structure.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
37ec53ca8e
commit
bfdae8beda
@ -89,6 +89,8 @@
|
|||||||
#define PAJ6100_ID (0x6100)
|
#define PAJ6100_ID (0x6100)
|
||||||
#define FROGEYE2020_ID (0x2020)
|
#define FROGEYE2020_ID (0x2020)
|
||||||
|
|
||||||
|
#define OMV_CSI_TIMEOUT_MS (3000)
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
OMV_CSI_ACTIVE_LOW = 0,
|
OMV_CSI_ACTIVE_LOW = 0,
|
||||||
OMV_CSI_ACTIVE_HIGH = 1
|
OMV_CSI_ACTIVE_HIGH = 1
|
||||||
@ -290,6 +292,13 @@ typedef struct _omv_csi {
|
|||||||
|
|
||||||
omv_i2c_t i2c_bus; // SCCB/I2C bus.
|
omv_i2c_t i2c_bus; // SCCB/I2C bus.
|
||||||
|
|
||||||
|
#ifdef OMV_CSI_PORT_BITS
|
||||||
|
// Additional port-specific members like device base pointer,
|
||||||
|
// dma handles, more I/Os etc... are included directly here,
|
||||||
|
// so that they can be accessible from this struct.
|
||||||
|
OMV_CSI_PORT_BITS
|
||||||
|
#endif
|
||||||
|
|
||||||
// Sensor function pointers
|
// Sensor function pointers
|
||||||
int (*reset) (omv_csi_t *csi);
|
int (*reset) (omv_csi_t *csi);
|
||||||
int (*sleep) (omv_csi_t *csi, int enable);
|
int (*sleep) (omv_csi_t *csi, int enable);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user