APM:Libraries
Classes | Macros | Typedefs | Functions | Variables
serial_4way_impl.h File Reference
#include <hal.h>
#include <timer.h>
#include <boards.h>
Include dependency graph for serial_4way_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  escHardware_t
 
struct  ioMem_s
 

Macros

#define MAX_SUPPORTED_MOTORS   6
 
#define HIGH   1
 
#define LOW   0
 
#define ESC_IS_HI   isEscHi(selected_esc)
 
#define ESC_IS_LO   isEscLo(selected_esc)
 
#define ESC_SET_HI   setEscHi(selected_esc)
 
#define ESC_SET_LO   setEscLo(selected_esc)
 
#define ESC_INPUT   setEscInput(selected_esc)
 
#define ESC_OUTPUT   setEscOutput(selected_esc)
 

Typedefs

typedef struct ioMem_s ioMem_t
 

Functions

bool isEscHi (uint8_t selEsc)
 
bool isEscLo (uint8_t selEsc)
 
void setEscHi (uint8_t selEsc)
 
void setEscLo (uint8_t selEsc)
 
void setEscInput (uint8_t selEsc)
 
void setEscOutput (uint8_t selEsc)
 
static void delay_us (uint16_t t)
 
static uint32_t micros ()
 
static uint32_t millis ()
 

Variables

uint8_t selected_esc
 

Macro Definition Documentation

◆ ESC_INPUT

#define ESC_INPUT   setEscInput(selected_esc)

Definition at line 38 of file serial_4way_impl.h.

◆ ESC_IS_HI

#define ESC_IS_HI   isEscHi(selected_esc)

Definition at line 34 of file serial_4way_impl.h.

◆ ESC_IS_LO

#define ESC_IS_LO   isEscLo(selected_esc)

Definition at line 35 of file serial_4way_impl.h.

◆ ESC_OUTPUT

#define ESC_OUTPUT   setEscOutput(selected_esc)

Definition at line 39 of file serial_4way_impl.h.

◆ ESC_SET_HI

#define ESC_SET_HI   setEscHi(selected_esc)

Definition at line 36 of file serial_4way_impl.h.

◆ ESC_SET_LO

#define ESC_SET_LO   setEscLo(selected_esc)

Definition at line 37 of file serial_4way_impl.h.

◆ HIGH

#define HIGH   1

Definition at line 28 of file serial_4way_impl.h.

◆ LOW

#define LOW   0

Definition at line 29 of file serial_4way_impl.h.

◆ MAX_SUPPORTED_MOTORS

#define MAX_SUPPORTED_MOTORS   6

Definition at line 10 of file serial_4way_impl.h.

Typedef Documentation

◆ ioMem_t

typedef struct ioMem_s ioMem_t

Function Documentation

◆ delay_us()

static void delay_us ( uint16_t  t)
inlinestatic

Definition at line 49 of file serial_4way_impl.h.

Here is the call graph for this function:

◆ isEscHi()

bool isEscHi ( uint8_t  selEsc)

◆ isEscLo()

bool isEscLo ( uint8_t  selEsc)

◆ micros()

static uint32_t micros ( )
inlinestatic

Definition at line 50 of file serial_4way_impl.h.

Here is the call graph for this function:

◆ millis()

static uint32_t millis ( )
inlinestatic

Definition at line 51 of file serial_4way_impl.h.

Here is the call graph for this function:

◆ setEscHi()

void setEscHi ( uint8_t  selEsc)

◆ setEscInput()

void setEscInput ( uint8_t  selEsc)

◆ setEscLo()

void setEscLo ( uint8_t  selEsc)

◆ setEscOutput()

void setEscOutput ( uint8_t  selEsc)

Variable Documentation

◆ selected_esc

uint8_t selected_esc