|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
32 #define ACTUATORS_ASCTEC_V2_SLAVE_ADDR 0x00
34 PRINT_CONFIG_VAR(ACTUATORS_ASCTEC_V2_I2C_DEV)
55 #if defined ACTUATORS_START_DELAY && ! defined SITL
56 if (!actuators_delay_done) {
58 #ifdef USE_I2C_ACTUATORS_REBOOT_HACK
64 }
else { actuators_delay_done =
true; }
185 data ^= (
crc & 0xff);
struct ActuatorsAsctecV2 actuators_asctec_v2
static uint16_t crc_update(uint16_t crc, uint8_t data)
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
@ I2CTransTx
transmit only transaction
@ I2CTransFailed
transaction failed
uint8_t len_w
Number of bytes to write/transmit.
@ I2CTransSuccess
transaction successfully finished by I2C driver
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_asctec_v2_set(void)
struct i2c_transaction i2c_trans
enum actuators_asctec_v2_addr new_addr
Architecture independent timing functions.
enum I2CTransactionStatus status
Transaction status.
uint8_t slave_addr
Slave address.
enum actuators_asctec_v2_addr cur_addr
#define ACTUATORS_ASCTEC_V2_SLAVE_ADDR
@ I2CTransDone
transaction set to done by user level
enum I2CTransactionType type
Transaction type.
enum actuators_asctec_v2_cmd cmd
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.
void actuators_asctec_v2_init(void)