Application Notes
ArduCAM Camera Shield Software Application Note
www.ArduCAM.com
10
6.2 void flush_fifo (void)
flash fifo function is used to reset the fifo read pointer to ZERO.
6.3 void start_capture (void)
start_capture function is used to issue a capture command. After this command the ArduCAM
hardware will wait for a start of a new frame then store the entire frame data to onboard frame
buffer.
6.4 void clear_fifo_flag (void)
Once a frame image is buffed to onboard memory, the capture completion flag is asserted
automatically. The clear_fifo_flag function is used to clear this flag before issuing next capture
command.
6.5 void write_reg(uint8_t addr, uint8_t data)
Param1: ArduChip register address (or command code)
Param2: data to be written into the register
write_reg is a basic function to write the ArduChip internal registers.
6.6 uint8_t read_reg(uint8_t addr)
Param1: ArduChip register address (or command code)
Return value: register value
read_reg is a basic function to read ArduChip internal register value.
6.7 uint32_t read_fifo_length(void)
Return value: 32 bit length of captured image
read_fifo_length function is used to determine the length of current captured image. Note the
Rev.C shield doesn't support this feature.
6.8 void set_fifo_burst(void)
set_fifo_burst function is used to set the read memory into burst read mode. It should be
called before burst memory read operation. Note the Rev.C shield doesn't support this feature.
6.9 int wrSensorRegs8_8(const struct sensor_reg*)
Param1: sensor setting data array
Return value: error status
wrSensorRegs8_8 function is used to write array of settings into sensor’s internal register
over I2C interface and sensor’s register is accessed with 8bit address and 8bit data.
6.10 int wrSensorRegs8_16(const struct sensor_reg*)
Param1: sensor setting data array
Return value: error status
wrSensorRegs8_16 function is used to write array of settings into sensor’s internal register
over I2C interface and sensor’s register is accessed with 8bit address and 16bit data.
6.11 int wrSensorRegs16_8(const struct sensor_reg*)
Param1: sensor setting data array
Return value: error status
wrSensorRegs16_8 function is used to write array of settings into sensor’s internal register
over I2C interface and sensor’s register is accessed with 16bit address and 8bit data.
6.12 int wrSensorRegs16_16(const struct sensor_reg*)
Param1: sensor setting data array
Return value: error status
wrSensorRegs16_16 function is used to write array of settings into sensor’s internal register