model.h 920 B

123456789101112131415161718192021
  1. #ifndef _IPECAMERA_MODEL_H
  2. #define _IPECAMERA_MODEL_H
  3. #include <stdio.h>
  4. #include <pcilib/model.h>
  5. //#define IPECAMERA_DEBUG
  6. #define IPECAMERA_DMA_ADDRESS 0 /**< Address of DMA engine to use for communication */
  7. #define IPECAMERA_DMA_PACKET_LENGTH 4096 /**< IPECamera always use buffers of fixed size adding padding in the end.
  8. This is used to compute expected amount of data for each frame */
  9. #define IPECAMERA_REGISTER_SPACE 0x9000
  10. #define IPECAMERA_CMOSIS_REGISTER_WRITE (IPECAMERA_REGISTER_SPACE + 0)
  11. #define IPECAMERA_CMOSIS_REGISTER_READ (IPECAMERA_REGISTER_SPACE + 16)
  12. extern const pcilib_register_description_t cmosis_registers[];
  13. extern const pcilib_register_description_t cmosis20000_registers[];
  14. const pcilib_model_description_t *pcilib_get_event_model(pcilib_t *pcilib, unsigned short vendor_id, unsigned short device_id, const char *model);
  15. #endif /* _IPECAMERA_MODEL_H */