Skip to content

File SmartServoController.cpp

FileList > fw > rbcx-coprocessor > src > SmartServoController.cpp

Go to the source code of this file.

  • #include "SmartServoController.hpp"
  • #include "Bsp.hpp"
  • #include "ControlLink.hpp"
  • #include "stm32f1xx_ll_gpio.h"
  • #include "stm32f1xx_ll_usart.h"
  • #include "utils/Debug.hpp"
  • #include "utils/TickTimer.hpp"

Public Types

Type Name
enum SmartServoState

Public Static Attributes

Type Name
std::array< uint8_t, sizeof(CoprocReq_SmartServoReq_data_t::bytes)> gBuff
size_t gBuffIndex = = 0
size_t gBuffSize = = 0
bool gExpectResponse = = false
bool gResponseReady = = false
TickTimer gResponseTimeout
SmartServoState gState = = IDLE
TickTimer gStateTimeout

Public Functions

Type Name
void SERVOUART_HANDLER (void)
void smartServoInit ()
void smartServoPoll ()
void smartServoSendRequest (const CoprocReq_SmartServoReq & req)

Public Static Functions

Type Name
void smartServoSetResponseReady ()
void smartServoStopRx ()

Public Types Documentation

enum SmartServoState

enum SmartServoState {
    IDLE,
    TX,
    RX
};

Public Static Attributes Documentation

variable gBuff

std::array<uint8_t, sizeof(CoprocReq_SmartServoReq_data_t::bytes)> gBuff;

variable gBuffIndex

size_t gBuffIndex;

variable gBuffSize

size_t gBuffSize;

variable gExpectResponse

bool gExpectResponse;

variable gResponseReady

bool gResponseReady;

variable gResponseTimeout

TickTimer gResponseTimeout;

variable gState

SmartServoState gState;

variable gStateTimeout

TickTimer gStateTimeout;

Public Functions Documentation

function SERVOUART_HANDLER

void SERVOUART_HANDLER (
    void
) 

function smartServoInit

void smartServoInit () 

function smartServoPoll

void smartServoPoll () 

function smartServoSendRequest

void smartServoSendRequest (
    const CoprocReq_SmartServoReq & req
) 

Public Static Functions Documentation

function smartServoSetResponseReady

static void smartServoSetResponseReady () 

function smartServoStopRx

static void smartServoStopRx () 

The documentation for this class was generated from the following file fw/rbcx-coprocessor/src/SmartServoController.cpp