Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
atmega_i2c_cam_ctrl.c File Reference

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 "messages.h"
#include "subsystems/datalink/downlink.h"
#include "estimator.h"
+ Include dependency graph for atmega_i2c_cam_ctrl.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#define ATMEGA_I2C_DEV   i2c0
 
#define ATMEGA_SLAVE_ADDR   0x68
 

Functions

void dc_send_command (uint8_t cmd)
 
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
 

Detailed Description

Interface with digital camera though AVR AtMega chip.

Send Commands over I2C

Definition in file atmega_i2c_cam_ctrl.c.

Macro Definition Documentation

#define ATMEGA_I2C_DEV   i2c0

Definition at line 53 of file atmega_i2c_cam_ctrl.c.

Referenced by atmega_i2c_cam_ctrl_send().

#define ATMEGA_SLAVE_ADDR   0x68

Definition at line 58 of file atmega_i2c_cam_ctrl.c.

Referenced by atmega_i2c_cam_ctrl_send().

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 37 of file atmega_i2c_cam_ctrl.c.

Function Documentation

void atmega_i2c_cam_ctrl_event ( void  )

Definition at line 97 of file atmega_i2c_cam_ctrl.c.

void atmega_i2c_cam_ctrl_init ( void  )

Definition at line 63 of file atmega_i2c_cam_ctrl.c.

void atmega_i2c_cam_ctrl_periodic ( void  )

Definition at line 69 of file atmega_i2c_cam_ctrl.c.

void atmega_i2c_cam_ctrl_send ( uint8_t  cmd)

Definition at line 83 of file atmega_i2c_cam_ctrl.c.

Referenced by atmega_i2c_cam_ctrl_periodic(), and dc_send_command().

+ Here is the caller graph for this function:

void dc_send_command ( uint8_t  cmd)

Definition at line 45 of file atmega_i2c_cam_ctrl.c.

Referenced by atmega_i2c_cam_ctrl_periodic(), and SpiralNav().

+ Here is the caller graph for this function:

Variable Documentation

uint8_t atmega_i2c_cam_ctrl_just_sent_command = 0

Definition at line 61 of file atmega_i2c_cam_ctrl.c.

Referenced by atmega_i2c_cam_ctrl_periodic(), and atmega_i2c_cam_ctrl_send().

struct i2c_transaction atmega_i2c_cam_ctrl_trans
static