Feetech STS Driver
Loading...
Searching...
No Matches
Public Attributes | List of all members
sts_bus_s Struct Reference

STS Shared Bus Handle. More...

#include <sts_servo.h>

Public Attributes

void * port_handle
 
sts_hal_transmit_t transmit
 
sts_hal_receive_t receive
 
sts_hal_flush_rx_t flush_rx
 
uint8_t max_retries
 
uint32_t total_transactions
 
uint32_t total_retries
 
uint32_t retry_saves
 
uint32_t hard_failures
 
uint8_t tx_buf [STS_MAX_TX_BUFFER]
 
uint8_t rx_buf [STS_MAX_RX_BUFFER]
 

Detailed Description

STS Shared Bus Handle.

Member Data Documentation

◆ flush_rx

sts_hal_flush_rx_t sts_bus_s::flush_rx

drain stale RX bytes between retries. NULL = no-op.

◆ hard_failures

uint32_t sts_bus_s::hard_failures

Transactions that exhausted all attempts

◆ max_retries

uint8_t sts_bus_s::max_retries

Transaction retry count on transport error (0 = no retries)

◆ port_handle

void* sts_bus_s::port_handle

Opaque pointer to the physical UART hardware

◆ receive

sts_hal_receive_t sts_bus_s::receive

Injected RX function

◆ retry_saves

uint32_t sts_bus_s::retry_saves

Transactions that failed then succeeded on retry

◆ total_retries

uint32_t sts_bus_s::total_retries

Attempts after the first (each retry = +1)

◆ total_transactions

uint32_t sts_bus_s::total_transactions

Every call to sts_execute_command

◆ transmit

sts_hal_transmit_t sts_bus_s::transmit

Injected TX function


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