|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
32 #define ACTUATORS_ASCTEC_V2_SLAVE_ADDR 0x02
34 PRINT_CONFIG_VAR(ACTUATORS_ASCTEC_V2_I2C_DEV)
53 #if defined ACTUATORS_START_DELAY && ! defined SITL
54 if (!actuators_delay_done) {
56 #ifdef USE_I2C_ACTUATORS_REBOOT_HACK
62 }
else { actuators_delay_done =
true; }
struct ActuatorsAsctecV2 actuators_asctec_v2
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
@ I2CTransTx
transmit only transaction
@ I2CTransFailed
transaction failed
uint8_t len_w
Number of bytes to write/transmit.
@ I2CTransSuccess
transaction successfully finished by I2C driver
void actuators_asctec_v2_init(void)
struct i2c_transaction i2c_trans
void actuators_asctec_v2_set(void)
enum actuators_asctec_v2_addr new_addr
Architecture independent timing functions.
enum I2CTransactionStatus status
Transaction status.
uint8_t slave_addr
Slave address.
enum actuators_asctec_v2_addr cur_addr
@ I2CTransDone
transaction set to done by user level
static bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
Submit a I2C transaction.
enum I2CTransactionType type
Transaction type.
enum actuators_asctec_v2_cmd cmd
#define ACTUATORS_ASCTEC_V2_SLAVE_ADDR