PX4 Firmware
PX4 Autopilot Software http://px4.io
tap_esc_common.cpp File Reference
#include "tap_esc_common.h"
#include <fcntl.h>
#include <termios.h>
#include <systemlib/px4_macros.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
Include dependency graph for tap_esc_common.cpp:

Go to the source code of this file.

Namespaces

 tap_esc_common
 

Macros

#define B250000   250000
 

Functions

static uint8_t tap_esc_common::crc8_esc (uint8_t *p, uint8_t len)
 
static uint8_t tap_esc_common::crc_packet (EscPacket &p)
 
void tap_esc_common::select_responder (uint8_t sel)
 Select tap esc responder data for serial interface by 74hct151. More...
 
int tap_esc_common::initialise_uart (const char *const device, int &uart_fd)
 Opens a device for use as UART. More...
 
int tap_esc_common::deinitialise_uart (int &uart_fd)
 Closes a device previously opened with initialise_uart(). More...
 
int tap_esc_common::enable_flow_control (int uart_fd, bool enabled)
 Enables/disables flow control for open UART device. More...
 
int tap_esc_common::send_packet (int uart_fd, EscPacket &packet, int responder)
 Sends a packet to all ESCs and requests a specific ESC to respond. More...
 
int tap_esc_common::read_data_from_uart (int uart_fd, ESC_UART_BUF *const uart_buf)
 Read data from the UART into a buffer. More...
 
int tap_esc_common::parse_tap_esc_feedback (ESC_UART_BUF *const serial_buf, EscPacket *const packetdata)
 Parse feedback from an ESC. More...
 

Variables

const uint8_t tap_esc_common::crc_table [256]
 Lookup-table for faster CRC computation when sending ESC packets. More...
 

Macro Definition Documentation

◆ B250000

#define B250000   250000

Definition at line 49 of file tap_esc_common.cpp.

Referenced by tap_esc_common::initialise_uart().