24 #include "generated/airframe.h"
62 #include "pprzlink/messages.h"
74 if (send_nr >= ACTUATORS_MKK_V2_NB) {
107 for (
int i = offset; i < (offset + 7); i++) {
117 #define BL_READMODE_CONFIG 16
118 #define config_mkk_v2_EEPROM_REVISION 2
121 #define RETURN_IF_NOT_KILLMODE() \
123 if (!actuators_delay_done) \
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
#define RETURN_IF_NOT_KILLMODE()
Actuators driver for Mikrokopter motor controllers.
void config_mkk_v2_parse_eeprom(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.
transaction successfully finished by I2C driver
void config_mkk_v2_read_eeprom(void)
transmit and receive transaction
#define BL_READMODE_CONFIG
struct i2c_transaction trans
struct actuators_mkk_v2_struct actuators_mkk_v2
void config_mkk_v2_periodic_read_status(void)
void config_mkk_v2_send_eeprom(void)
uint8_t len_w
Number of bytes to write/transmit.
Hardware independent API for actuators (servos, motor controllers).
static const float offset[]
#define config_mkk_v2_EEPROM_REVISION
transaction set to done by user level
Read Status and Config from MKK (Mikrokopter) BLDC motor controllers.
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.
uint8_t slave_addr
Slave address.
struct config_mkk_v2_struct config_mkk_v2
void config_mkk_v2_periodic_telemetry(void)
transmit only transaction
Common code for AP and FBW telemetry.
enum I2CTransactionType type
Transaction type.
void config_mkk_v2_init(void)
uint8_t config_mkk_v2_crc(uint8_t offset)
config_mkk_v2_eeprom_t config_mkk_v2_eeprom