|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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++) {
static void actuators_mkk_v2_read(void)
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.
@ I2CTransTx
transmit only transaction
uint16_t setpoint[ACTUATORS_MKK_V2_NB]
struct actuators_mkk_v2_telemetry_struct data[ACTUATORS_MKK_V2_NB]
uint8_t len_w
Number of bytes to write/transmit.
@ I2CTransSuccess
transaction successfully finished by I2C driver
Architecture independent timing functions.
enum I2CTransactionStatus status
Transaction status.
void actuators_mkk_v2_init(void)
struct i2c_transaction trans[ACTUATORS_MKK_V2_NB]
struct actuators_mkk_v2_struct actuators_mkk_v2
@ I2CTransTxRx
transmit and receive transaction
uint8_t slave_addr
Slave address.
void actuators_mkk_v2_set(void)
static bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
Submit a I2C transaction.
enum I2CTransactionType type
Transaction type.