|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
37 #include "pprzlink/messages.h"
51 #ifndef ATMEGA_I2C_DEV
52 #define ATMEGA_I2C_DEV i2c0
56 #ifndef ATMEGA_SLAVE_ADDR
57 #define ATMEGA_SLAVE_ADDR 0x68
97 unsigned char cam_ret[1];
void dc_send_command_common(uint8_t cmd)
Command sending function.
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
static struct i2c_transaction atmega_i2c_cam_ctrl_trans
void atmega_i2c_cam_ctrl_periodic(void)
void atmega_i2c_cam_ctrl_send(uint8_t cmd)
void atmega_i2c_cam_ctrl_event(void)
@ I2CTransSuccess
transaction successfully finished by I2C driver
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void dc_send_command(uint8_t cmd)
Send Command To Camera.
bool i2c_transceive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len_w, uint16_t len_r)
Submit a write/read transaction.
void dc_send_shot_position(void)
Send Down the coordinates of where the photo was taken.
enum I2CTransactionStatus status
Transaction status.
arch independent LED (Light Emitting Diodes) API
void atmega_i2c_cam_ctrl_init(void)
I2C transaction structure.
Common code for AP and FBW telemetry.
uint8_t atmega_i2c_cam_ctrl_just_sent_command
@ I2CTransDone
transaction set to done by user level
#define ATMEGA_SLAVE_ADDR
void dc_init(void)
initialize settings
void dc_periodic(void)
periodic function