APM:Libraries
Macros | Functions | Variables
serial_4way.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <AP_HAL/AP_HAL.h>
#include <hal.h>
#include <systick.h>
#include "serial_4way_impl.h"
Include dependency graph for serial_4way.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USE_SERIAL_4WAY_BLHELI_BOOTLOADER
 
#define USE_SERIAL_4WAY_SK_BOOTLOADER
 
#define imC2   0
 
#define imSIL_BLB   1
 
#define imATM_BLB   2
 
#define imSK   3
 
#define imARM_BLB   4
 

Functions

union __attribute__ ((packed))
 
uint16_t _crc_xmodem_update (uint16_t crc, uint8_t data)
 
bool isMcuConnected (void)
 
uint8_t esc4wayInit (const uint8_t *output_channels, uint8_t nm)
 
void esc4wayProcess (AP_HAL::UARTDriver *uartPort)
 

Variables

 uint8_16_u
 
 uint8_32_u
 

Macro Definition Documentation

◆ imARM_BLB

#define imARM_BLB   4

Definition at line 23 of file serial_4way.h.

◆ imATM_BLB

#define imATM_BLB   2

Definition at line 21 of file serial_4way.h.

◆ imC2

#define imC2   0

Definition at line 19 of file serial_4way.h.

◆ imSIL_BLB

#define imSIL_BLB   1

Definition at line 20 of file serial_4way.h.

◆ imSK

#define imSK   3

Definition at line 22 of file serial_4way.h.

◆ USE_SERIAL_4WAY_BLHELI_BOOTLOADER

#define USE_SERIAL_4WAY_BLHELI_BOOTLOADER

Definition at line 16 of file serial_4way.h.

◆ USE_SERIAL_4WAY_SK_BOOTLOADER

#define USE_SERIAL_4WAY_SK_BOOTLOADER

Definition at line 17 of file serial_4way.h.

Function Documentation

◆ __attribute__()

union __attribute__ ( (packed)  )

Definition at line 27 of file serial_4way.h.

◆ _crc_xmodem_update()

uint16_t _crc_xmodem_update ( uint16_t  crc,
uint8_t  data 
)

◆ esc4wayInit()

uint8_t esc4wayInit ( const uint8_t *  output_channels,
uint8_t  nm 
)

Referenced by F4Light::RCOutput::do_4way_if().

Here is the caller graph for this function:

◆ esc4wayProcess()

void esc4wayProcess ( AP_HAL::UARTDriver uartPort)

Referenced by F4Light::RCOutput::do_4way_if().

Here is the caller graph for this function:

◆ isMcuConnected()

bool isMcuConnected ( void  )

Variable Documentation

◆ uint8_16_u

uint8_16_u

Definition at line 30 of file serial_4way.h.

◆ uint8_32_u

uint8_32_u

Definition at line 36 of file serial_4way.h.