Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
actuators_dshot_arch.c File Reference
Include dependency graph for actuators_dshot_arch.c:

Go to the source code of this file.

Data Structures

struct  dshot_private

Macros

#define DSHOT_MOTOR_POLES   14
#define _CONCAT_GPIO(num, name)
#define CONCAT_GPIO(num, name)

Functions

static void esc_msg_send (struct transport_tx *trans, struct link_device *dev)
static void dshot_init_struct (struct dshot *ds)
static void dshot_set_struct (struct dshot *ds, struct dshot_private *dsp, DSHOTDriver *driver, uint32_t channel)
void actuators_dshot_arch_init (void)
 Arch dependent init.
void actuators_dshot_arch_commit (void)

Variables

struct dshot_private actuators_dshot_private [ACTUATORS_DSHOT_NB]

Data Structure Documentation

◆ dshot_private

struct dshot_private

Definition at line 47 of file actuators_dshot_arch.c.

Collaboration diagram for dshot_private:
Data Fields
uint32_t channel
DSHOTDriver * driver

Macro Definition Documentation

◆ _CONCAT_GPIO

#define _CONCAT_GPIO ( num,
name )
Value:
UART ## num ## _GPIO_ ## name

Definition at line 150 of file actuators_dshot_arch.c.

◆ CONCAT_GPIO

#define CONCAT_GPIO ( num,
name )
Value:
_CONCAT_GPIO(num, name)
#define _CONCAT_GPIO(num, name)

Definition at line 151 of file actuators_dshot_arch.c.

Referenced by actuators_dshot_arch_init().

◆ DSHOT_MOTOR_POLES

#define DSHOT_MOTOR_POLES   14

Definition at line 44 of file actuators_dshot_arch.c.

Referenced by actuators_dshot_arch_commit().

Function Documentation

◆ actuators_dshot_arch_commit()

◆ actuators_dshot_arch_init()

◆ dshot_init_struct()

void dshot_init_struct ( struct dshot * ds)
static

Definition at line 134 of file actuators_dshot_arch.c.

References dshot::activated, dshot::cmd, dshot::current, dshot::rpm, and dshot::voltage.

Referenced by actuators_dshot_arch_init().

Here is the caller graph for this function:

◆ dshot_set_struct()

void dshot_set_struct ( struct dshot * ds,
struct dshot_private * dsp,
DSHOTDriver * driver,
uint32_t channel )
static

Definition at line 143 of file actuators_dshot_arch.c.

References dshot::activated, dshot_private::channel, and dshot_private::driver.

Referenced by actuators_dshot_arch_init().

Here is the caller graph for this function:

◆ esc_msg_send()

void esc_msg_send ( struct transport_tx * trans,
struct link_device * dev )
static

Definition at line 112 of file actuators_dshot_arch.c.

References ACTUATORS_DSHOT_NB, actuators_dshot_values, dev, electrical, and rpm.

Referenced by actuators_dshot_arch_init().

Here is the caller graph for this function:

Variable Documentation

◆ actuators_dshot_private

struct dshot_private actuators_dshot_private[ACTUATORS_DSHOT_NB]