Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
actuators_asctec_v2.h File Reference

Actuators driver for Asctec v2 motor controllers. More...

#include "mcu_periph/i2c.h"
#include "generated/airframe.h"
+ Include dependency graph for actuators_asctec_v2.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ActuatorsAsctecV2
 

Macros

#define actuators_asctec_v2_SetCommand(_v)
 
#define actuators_asctec_v2_SetNewAddr(_v)
 
#define actuators_asctec_v2_SetCurAddr(_v)
 
#define ActuatorAsctec_v2Set(_i, _v)   { actuators_asctec_v2.cmds[_i] = _v; }
 
#define ActuatorsAsctec_v2Init()   actuators_asctec_v2_init()
 
#define ActuatorsAsctec_v2Commit()   actuators_asctec_v2_set()
 

Enumerations

enum  actuators_asctec_v2_cmd { NONE , TEST , REVERSE , SET_ADDR }
 
enum  actuators_asctec_v2_addr { FRONT , BACK , LEFT , RIGHT }
 

Functions

void actuators_asctec_v2_init (void)
 
void actuators_asctec_v2_set (void)
 

Variables

struct ActuatorsAsctecV2 actuators_asctec_v2
 

Detailed Description

Actuators driver for Asctec v2 motor controllers.

Definition in file actuators_asctec_v2.h.


Data Structure Documentation

◆ ActuatorsAsctecV2

struct ActuatorsAsctecV2

Definition at line 45 of file actuators_asctec_v2.h.

+ Collaboration diagram for ActuatorsAsctecV2:
Data Fields
enum actuators_asctec_v2_cmd cmd
int32_t cmds[4]
enum actuators_asctec_v2_addr cur_addr
struct i2c_transaction i2c_trans
volatile uint32_t nb_err
enum actuators_asctec_v2_addr new_addr

Macro Definition Documentation

◆ ActuatorAsctec_v2Set

#define ActuatorAsctec_v2Set (   _i,
  _v 
)    { actuators_asctec_v2.cmds[_i] = _v; }

Definition at line 72 of file actuators_asctec_v2.h.

◆ actuators_asctec_v2_SetCommand

#define actuators_asctec_v2_SetCommand (   _v)
Value:
{ \
actuators_asctec_v2.cmd = _v; \
}

Definition at line 57 of file actuators_asctec_v2.h.

◆ actuators_asctec_v2_SetCurAddr

#define actuators_asctec_v2_SetCurAddr (   _v)
Value:
{ \
actuators_asctec_v2.cur_addr = _v; \
}

Definition at line 65 of file actuators_asctec_v2.h.

◆ actuators_asctec_v2_SetNewAddr

#define actuators_asctec_v2_SetNewAddr (   _v)
Value:
{ \
actuators_asctec_v2.new_addr = _v; \
}

Definition at line 61 of file actuators_asctec_v2.h.

◆ ActuatorsAsctec_v2Commit

#define ActuatorsAsctec_v2Commit ( )    actuators_asctec_v2_set()

Definition at line 74 of file actuators_asctec_v2.h.

◆ ActuatorsAsctec_v2Init

#define ActuatorsAsctec_v2Init ( )    actuators_asctec_v2_init()

Definition at line 73 of file actuators_asctec_v2.h.

Enumeration Type Documentation

◆ actuators_asctec_v2_addr

Enumerator
FRONT 
BACK 
LEFT 
RIGHT 

Definition at line 39 of file actuators_asctec_v2.h.

◆ actuators_asctec_v2_cmd

Enumerator
NONE 
TEST 
REVERSE 
SET_ADDR 

Definition at line 33 of file actuators_asctec_v2.h.

Function Documentation

◆ actuators_asctec_v2_init()

◆ actuators_asctec_v2_set()

Variable Documentation

◆ actuators_asctec_v2

struct ActuatorsAsctecV2 actuators_asctec_v2
extern

Definition at line 1 of file actuators_asctec_v2.c.

Referenced by actuators_asctec_v2_init(), and actuators_asctec_v2_set().