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