32 #define ACTUATORS_ASCTEC_V2_SLAVE_ADDR 0x02
34 PRINT_CONFIG_VAR(ACTUATORS_ASCTEC_V2_I2C_DEV)
47 actuators_asctec_v2.
nb_err = 0;
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; }
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
transaction successfully finished by I2C driver
enum actuators_asctec_v2_addr cur_addr
Actuators driver for Asctec v2 motor controllers.
enum actuators_asctec_v2_addr new_addr
void actuators_asctec_v2_init(void)
uint8_t len_w
Number of bytes to write/transmit.
Hardware independent API for actuators (servos, motor controllers).
transaction set to done by user level
Architecture independent timing functions.
bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
i2c_submit() function
#define ACTUATORS_ASCTEC_V2_SLAVE_ADDR
enum I2CTransactionStatus status
Transaction status.
void actuators_asctec_v2_set(void)
struct i2c_transaction i2c_trans
uint8_t slave_addr
Slave address.
transmit only transaction
enum I2CTransactionType type
Transaction type.
enum actuators_asctec_v2_cmd cmd
struct ActuatorsAsctecV2 actuators_asctec_v2
Architecture independent I2C (Inter-Integrated Circuit Bus) API.