32 PRINT_CONFIG_VAR(ACTUATORS_MKK_V2_I2C_DEV)
39 const uint8_t actuators_addr[ACTUATORS_MKK_V2_NB] = ACTUATORS_MKK_V2_ADDR;
40 for (
uint8_t i = 0; i < ACTUATORS_MKK_V2_NB; i++) {
69 #if defined ACTUATORS_START_DELAY && ! defined SITL
70 if (!actuators_delay_done) {
72 else { actuators_delay_done =
true; }
77 for (
uint8_t i = 0; i < ACTUATORS_MKK_V2_NB; i++) {
89 for (
uint8_t i = 0; i < ACTUATORS_MKK_V2_NB; i++) {
Actuators driver for Mikrokopter motor controllers.
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
uint16_t len_r
Number of bytes to read/receive.
transaction successfully finished by I2C driver
transmit and receive transaction
struct actuators_mkk_v2_struct actuators_mkk_v2
struct i2c_transaction trans[ACTUATORS_MKK_V2_NB]
uint8_t len_w
Number of bytes to write/transmit.
uint16_t setpoint[ACTUATORS_MKK_V2_NB]
Hardware independent API for actuators (servos, motor controllers).
Architecture independent timing functions.
bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
i2c_submit() function
struct actuators_mkk_v2_telemetry_struct data[ACTUATORS_MKK_V2_NB]
enum I2CTransactionStatus status
Transaction status.
static void actuators_mkk_v2_read(void)
uint8_t slave_addr
Slave address.
transmit only transaction
void actuators_mkk_v2_init(void)
enum I2CTransactionType type
Transaction type.
void actuators_mkk_v2_set(void)
Architecture independent I2C (Inter-Integrated Circuit Bus) API.