|  | Paparazzi UAS v7.0_unstable
    Paparazzi is a free software Unmanned Aircraft System. | 
Interface with digital camera though AVR AtMega chip. More...
#include "atmega_i2c_cam_ctrl.h"#include "mcu_periph/i2c.h"#include "led.h"#include "mcu_periph/uart.h"#include "pprzlink/messages.h"#include "modules/datalink/downlink.h" Include dependency graph for atmega_i2c_cam_ctrl.c:
 Include dependency graph for atmega_i2c_cam_ctrl.c:Go to the source code of this file.
| Macros | |
| #define | ATMEGA_I2C_DEV i2c0 | 
| #define | ATMEGA_SLAVE_ADDR 0x68 | 
| Functions | |
| void | dc_send_command (uint8_t cmd) | 
| Send Command To Camera. | |
| void | atmega_i2c_cam_ctrl_init (void) | 
| void | atmega_i2c_cam_ctrl_periodic (void) | 
| void | atmega_i2c_cam_ctrl_send (uint8_t cmd) | 
| void | atmega_i2c_cam_ctrl_event (void) | 
| Variables | |
| static struct i2c_transaction | atmega_i2c_cam_ctrl_trans | 
| uint8_t | atmega_i2c_cam_ctrl_just_sent_command = 0 | 
Interface with digital camera though AVR AtMega chip.
Send Commands over I2C
Definition in file atmega_i2c_cam_ctrl.c.
Definition at line 52 of file atmega_i2c_cam_ctrl.c.
| #define ATMEGA_SLAVE_ADDR 0x68 | 
Definition at line 57 of file atmega_i2c_cam_ctrl.c.
Definition at line 93 of file atmega_i2c_cam_ctrl.c.
References atmega_i2c_cam_ctrl_trans, i2c_transaction::buf, DefaultChannel, DefaultDevice, foo, I2CTransDone, I2CTransSuccess, and i2c_transaction::status.
Definition at line 62 of file atmega_i2c_cam_ctrl.c.
References atmega_i2c_cam_ctrl_trans, I2CTransDone, and i2c_transaction::status.
Definition at line 67 of file atmega_i2c_cam_ctrl.c.
References atmega_i2c_cam_ctrl_just_sent_command, atmega_i2c_cam_ctrl_send(), DC_GET_STATUS, and dc_periodic().
 Here is the call graph for this function:
 Here is the call graph for this function:Definition at line 80 of file atmega_i2c_cam_ctrl.c.
References atmega_i2c_cam_ctrl_just_sent_command, atmega_i2c_cam_ctrl_trans, ATMEGA_I2C_DEV, ATMEGA_SLAVE_ADDR, i2c_transaction::buf, dc_send_shot_position(), DC_SHOOT, and i2c_transceive().
Referenced by atmega_i2c_cam_ctrl_periodic(), and dc_send_command().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:Send Command To Camera.
Definition at line 41 of file atmega_i2c_cam_ctrl.c.
References atmega_i2c_cam_ctrl_send(), and dc_send_command_common().
Referenced by atmega_i2c_cam_ctrl_periodic(), dc_periodic(), dc_shoot_rc_periodic(), nav_spiral_run(), nav_survey_hybrid_run(), nav_survey_poly_run(), and nav_survey_rectangle_rotorcraft_run().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| uint8_t atmega_i2c_cam_ctrl_just_sent_command = 0 | 
Definition at line 60 of file atmega_i2c_cam_ctrl.c.
Referenced by atmega_i2c_cam_ctrl_periodic(), and atmega_i2c_cam_ctrl_send().
| 
 | static | 
Definition at line 49 of file atmega_i2c_cam_ctrl.c.
Referenced by atmega_i2c_cam_ctrl_event(), atmega_i2c_cam_ctrl_init(), and atmega_i2c_cam_ctrl_send().