Paparazzi UAS  v7.0_unstable
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...
 
uint32_t tlm_frame_nb
 number of sucessful telemetry frame received More...
 
uint16_t bit0Duty
 
uint16_t bit1Duty
 
DshotPackets dshotMotors
 object managing dma control frame for outgoing command More...
 

Detailed Description

DSHOT driver structure.

Definition at line 287 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 311 of file esc_dshot.h.

Referenced by dshotStart().

◆ bit0Duty

uint16_t DSHOTDriver::bit0Duty

Definition at line 329 of file esc_dshot.h.

Referenced by dshotStart().

◆ bit1Duty

uint16_t DSHOTDriver::bit1Duty

Definition at line 330 of file esc_dshot.h.

Referenced by dshotStart().

◆ config

const DSHOTConfig* DSHOTDriver::config

DMA config associated with pwm timer.

Definition at line 291 of file esc_dshot.h.

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

◆ crc_errors

uint32_t DSHOTDriver::crc_errors

number of crc errors

Definition at line 321 of file esc_dshot.h.

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

◆ dma_conf

DMAConfig DSHOTDriver::dma_conf

DMA config associated with pwm timer.

Definition at line 296 of file esc_dshot.h.

Referenced by dshotStart().

◆ dmap

DMADriver DSHOTDriver::dmap

DMA driver associated with pwm timer.

Definition at line 306 of file esc_dshot.h.

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

◆ dshotMotors

DshotPackets DSHOTDriver::dshotMotors

object managing dma control frame for outgoing command

Definition at line 356 of file esc_dshot.h.

Referenced by buildDshotDmaBuffer(), dshotGetTelemetry(), dshotSendFrame(), dshotSendSpecialCommand(), dshotSendThrottles(), dshotSetThrottle(), dshotStart(), and dshotTlmRec().

◆ mb

mailbox_t DSHOTDriver::mb

mailbox for dshot telemetry thread

Definition at line 316 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 301 of file esc_dshot.h.

Referenced by dshotStart().

◆ tlm_frame_nb

uint32_t DSHOTDriver::tlm_frame_nb

number of sucessful telemetry frame received

Definition at line 326 of file esc_dshot.h.

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


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