Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
DSHOTDriver Struct Reference

DSHOT driver structure. More...

#include <esc_dshot.h>

+ Collaboration diagram for DSHOTDriver:

Public Member Functions

 THD_WORKING_AREA (waDshotTlmRec, 512)
 stack working area for dshot telemetry thread More...
 

Data Fields

const DSHOTConfigconfig
 DMA config associated with pwm timer. More...
 
DMAConfig dma_conf
 DMA config associated with pwm timer. More...
 
PWMConfig pwm_conf
 PWM config associated with pwm timer. More...
 
DMADriver dmap
 DMA driver associated with pwm timer. More...
 
msg_t _mbBuf [1]
 mailbox buffer for dshot telemetry thread More...
 
mailbox_t mb
 mailbox for dshot telemetry thread More...
 
uint32_t crc_errors
 number of crc errors More...
 
DshotPackets dshotMotors
 

Detailed Description

DSHOT driver structure.

Definition at line 228 of file esc_dshot.h.

Member Function Documentation

◆ THD_WORKING_AREA()

DSHOTDriver::THD_WORKING_AREA ( waDshotTlmRec  ,
512   
)

stack working area for dshot telemetry thread

Field Documentation

◆ _mbBuf

msg_t DSHOTDriver::_mbBuf[1]

mailbox buffer for dshot telemetry thread

Definition at line 252 of file esc_dshot.h.

Referenced by dshotStart().

◆ config

const DSHOTConfig* DSHOTDriver::config

DMA config associated with pwm timer.

Definition at line 232 of file esc_dshot.h.

Referenced by dshotSendFrame(), dshotSendSpecialCommand(), dshotStart(), and dshotTlmRec().

◆ crc_errors

uint32_t DSHOTDriver::crc_errors

number of crc errors

Definition at line 262 of file esc_dshot.h.

Referenced by dshotGetCrcErrorsCount(), dshotStart(), and dshotTlmRec().

◆ dma_conf

DMAConfig DSHOTDriver::dma_conf

DMA config associated with pwm timer.

Definition at line 237 of file esc_dshot.h.

Referenced by dshotStart().

◆ dmap

DMADriver DSHOTDriver::dmap

DMA driver associated with pwm timer.

Definition at line 247 of file esc_dshot.h.

Referenced by dshotSendFrame(), and dshotStart().

◆ dshotMotors

◆ mb

mailbox_t DSHOTDriver::mb

mailbox for dshot telemetry thread

Definition at line 257 of file esc_dshot.h.

Referenced by dshotSendFrame(), dshotStart(), and dshotTlmRec().

◆ pwm_conf

PWMConfig DSHOTDriver::pwm_conf

PWM config associated with pwm timer.

Definition at line 242 of file esc_dshot.h.

Referenced by dshotStart().


The documentation for this struct was generated from the following file: