32 PRINT_CONFIG_VAR(ACTUATORS_MKK_I2C_DEV)
45 const uint8_t actuators_addr[ACTUATORS_MKK_NB] = ACTUATORS_MKK_ADDR;
46 static uint8_t last_idx = ACTUATORS_MKK_NB;
48 #if defined ACTUATORS_START_DELAY && ! defined SITL
49 if (!actuators_delay_done) {
53 actuators_delay_done =
true;
59 for (
uint8_t i = 0; i < ACTUATORS_MKK_NB; i++) {
60 if (cur_idx >= ACTUATORS_MKK_NB) {
67 actuators_addr[cur_idx], 1)) {
75 last_idx = ACTUATORS_MKK_NB;
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
struct ActuatorsMkk actuators_mkk
Hardware independent API for actuators (servos, motor controllers).
Actuators driver for Mikrokopter motor controllers.
Architecture independent timing functions.
void actuators_mkk_init(void)
struct i2c_transaction trans[ACTUATORS_MKK_NB]
bool i2c_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
void actuators_mkk_set(void)
Architecture independent I2C (Inter-Integrated Circuit Bus) API.