Robot
The embedded systems for UTRA's autonomous humanoid soccer-playing robot
Private Functions

Functions only accessible from within the IO library. More...

Collaboration diagram for Private Functions:

Functions

static void Dynamixel_BusDirTX (GPIO_TypeDef *port, uint16_t pinNum)
 Set data direction pin high (TX) More...
 
static void Dynamixel_BusDirRX (GPIO_TypeDef *port, uint16_t pinNum)
 Set data direction pin low (RX) More...
 
static uint8_t Dynamixel_ComputeChecksum (uint8_t *arr, int length)
 Compute the checksum for data passes in, according to a modular checksum algorithm employed by the Dynamixel V1.0 protocol. More...
 
static bool Dynamixel_GenericReceive (Dynamixel_HandleTypeDef *hdynamixel, uint8_t *arr, uint8_t arrSize)
 Generic function for receiving data. Supports all IO modes. More...
 
static bool Dynamixel_GenericTransmit (Dynamixel_HandleTypeDef *hdynamixel, uint8_t *arr, uint8_t arrSize)
 Generic function for transmitting data. Supports all IO modes. More...
 

Detailed Description

Functions only accessible from within the IO library.

Function Documentation

◆ Dynamixel_BusDirRX()

static void Dynamixel_BusDirRX ( GPIO_TypeDef *  port,
uint16_t  pinNum 
)
inlinestatic

Set data direction pin low (RX)

Parameters
portthe port the data direction pin is on
pinNumthe pin number of the data direction pin on the specified port
Returns
None

Definition at line 131 of file DynamixelProtocolV1_IO.c.

◆ Dynamixel_BusDirTX()

static void Dynamixel_BusDirTX ( GPIO_TypeDef *  port,
uint16_t  pinNum 
)
inlinestatic

Set data direction pin high (TX)

Parameters
portthe port the data direction pin is on
pinNumthe pin number of the data direction pin on the specified port
Returns
None

Definition at line 121 of file DynamixelProtocolV1_IO.c.

Here is the caller graph for this function:

◆ Dynamixel_ComputeChecksum()

static uint8_t Dynamixel_ComputeChecksum ( uint8_t *  arr,
int  length 
)
inlinestatic

Compute the checksum for data passes in, according to a modular checksum algorithm employed by the Dynamixel V1.0 protocol.

Parameters
arrthe array to be ran through the checksum function
lengththe total length of the array arr
Returns
The 1-byte number that is the checksum

Definition at line 142 of file DynamixelProtocolV1_IO.c.

Here is the caller graph for this function:

◆ Dynamixel_GenericReceive()

static bool Dynamixel_GenericReceive ( Dynamixel_HandleTypeDef hdynamixel,
uint8_t *  arr,
uint8_t  arrSize 
)
inlinestatic

Generic function for receiving data. Supports all IO modes.

When using non-blocking IO, this function will cancel the data transfer upon timeout

Parameters
hdynamixelpointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor
arrpointer to the receive buffer
arrSizethe number of bytes to be received
Returns
true if no issues, false otherwise

Definition at line 254 of file DynamixelProtocolV1_IO.c.

Here is the caller graph for this function:

◆ Dynamixel_GenericTransmit()

static bool Dynamixel_GenericTransmit ( Dynamixel_HandleTypeDef hdynamixel,
uint8_t *  arr,
uint8_t  arrSize 
)
inlinestatic

Generic function for transmitting data. Supports all IO modes.

When using non-blocking IO, this function will cancel the data transfer upon timeout

Parameters
hdynamixelpointer to a Dynamixel_HandleTypeDef structure that contains the configuration information for the motor
arrpointer to the packet to be transmitted
arrSizethe number of bytes to be transmitted
Returns
true if no issues, false otherwise

Definition at line 313 of file DynamixelProtocolV1_IO.c.

Here is the caller graph for this function: