Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
ArduCAM Class Reference

Public Member Functions

 ArduCAM (byte model, int CS)
 
void InitCAM ()
 
void CS_HIGH (void)
 
void CS_LOW (void)
 
void flush_fifo (void)
 
void start_capture (void)
 
void clear_fifo_flag (void)
 
uint8_t read_fifo (void)
 
uint8_t read_reg (uint8_t addr)
 
void write_reg (uint8_t addr, uint8_t data)
 
uint32_t read_fifo_length (void)
 
void set_fifo_burst (void)
 
void set_bit (uint8_t addr, uint8_t bit)
 
void clear_bit (uint8_t addr, uint8_t bit)
 
uint8_t get_bit (uint8_t addr, uint8_t bit)
 
void set_mode (uint8_t mode)
 
int wrSensorRegs (const struct sensor_reg *)
 
int wrSensorRegs8_8 (const struct sensor_reg *)
 
int wrSensorRegs8_16 (const struct sensor_reg *)
 
int wrSensorRegs16_8 (const struct sensor_reg *)
 
int wrSensorRegs16_16 (const struct sensor_reg *)
 
byte wrSensorReg (int regID, int regDat)
 
byte wrSensorReg8_8 (int regID, int regDat)
 
byte wrSensorReg8_16 (int regID, int regDat)
 
byte wrSensorReg16_8 (int regID, int regDat)
 
byte wrSensorReg16_16 (int regID, int regDat)
 
byte rdSensorReg8_8 (uint8_t regID, uint8_t *regDat)
 
byte rdSensorReg16_8 (uint16_t regID, uint8_t *regDat)
 
byte rdSensorReg8_16 (uint8_t regID, uint16_t *regDat)
 
byte rdSensorReg16_16 (uint16_t regID, uint16_t *regDat)
 
void OV2640_set_JPEG_size (uint8_t size)
 
void OV5642_set_JPEG_size (uint8_t size)
 
void set_format (byte fmt)
 
byte get_format ()
 
int bus_write (int address, int value)
 
uint8_t bus_read (int address)
 

Protected Attributes

regtype * P_CS
 
regsize B_CS
 
byte m_fmt
 
byte sensor_model
 
byte sensor_addr