26 #ifndef ACTUATORS_ASCTEC_V2_H
27 #define ACTUATORS_ASCTEC_V2_H
31 #include "generated/airframe.h"
57 #define actuators_asctec_v2_SetCommand(_v) { \
58 actuators_asctec_v2.cmd = _v; \
61 #define actuators_asctec_v2_SetNewAddr(_v) { \
62 actuators_asctec_v2.new_addr = _v; \
65 #define actuators_asctec_v2_SetCurAddr(_v) { \
66 actuators_asctec_v2.cur_addr = _v; \
72 #define ActuatorAsctec_v2Set(_i, _v) { actuators_asctec_v2.cmds[_i] = _v; }
73 #define ActuatorsAsctec_v2Init() actuators_asctec_v2_init()
74 #define ActuatorsAsctec_v2Commit() actuators_asctec_v2_set()
void actuators_asctec_v2_set(void)
void actuators_asctec_v2_init(void)
enum actuators_asctec_v2_addr cur_addr
struct ActuatorsAsctecV2 actuators_asctec_v2
enum actuators_asctec_v2_addr new_addr
enum actuators_asctec_v2_cmd cmd
struct i2c_transaction i2c_trans
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
int int32_t
Typedef defining 32 bit int type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.