NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
serial.h File Reference
#include "target.h"
Include dependency graph for serial.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  serial_port_config
 
struct  serial_config
 

Enumerations

enum  serialPortIdentifier_e {
  SERIAL_PORT_NONE = -1, SERIAL_PORT_UART1 = 0, SERIAL_PORT_UART2, SERIAL_PORT_UART3,
  SERIAL_PORT_UART4, SERIAL_PORT_UART5, SERIAL_PORT_USB_VCP = 20, SERIAL_PORT_SOFTSERIAL1 = 30,
  SERIAL_PORT_SOFTSERIAL2, SERIAL_PORT_IDENTIFIER_MAX = SERIAL_PORT_SOFTSERIAL2
}
 serial port identifiers More...
 
enum  portSharing_e { PORTSHARING_UNUSED = 0, PORTSHARING_NOT_SHARED, PORTSHARING_SHARED }
 
enum  serialPortFunction_e {
  FUNCTION_NONE = 0, FUNCTION_MSP = (1 << 0), FUNCTION_GPS = (1 << 1), FUNCTION_TELEMETRY_FRSKY = (1 << 2),
  FUNCTION_TELEMETRY_HOTT = (1 << 3), FUNCTION_TELEMETRY_LTM = (1 << 4), FUNCTION_TELEMETRY_SMARTPORT = (1 << 5), FUNCTION_RX_SERIAL = (1 << 6),
  FUNCTION_BLACKBOX = (1 << 7), FUNCTION_TELEMETRY_MAVLINK = (1 << 8)
}
 
enum  baudRate_e {
  BAUD_AUTO = 0, BAUD_9600, BAUD_19200, BAUD_38400,
  BAUD_57600, BAUD_115200, BAUD_230400, BAUD_250000
}
 

Functions

struct serial_port_config __attribute__ ((packed))
 

Variables

typedef __attribute__
 
serialPortIdentifier_e identifier
 
uint16_t functionMask
 
uint8_t msp_baudrateIndex
 
uint8_t gps_baudrateIndex
 
uint8_t blackbox_baudrateIndex
 
uint8_t telemetry_baudrateIndex
 
uint8_t reboot_character
 
struct serial_port_config portConfigs [SERIAL_PORT_COUNT]
 

Enumeration Type Documentation

enum baudRate_e
Enumerator
BAUD_AUTO 
BAUD_9600 
BAUD_19200 
BAUD_38400 
BAUD_57600 
BAUD_115200 
BAUD_230400 
BAUD_250000 
Enumerator
PORTSHARING_UNUSED 
PORTSHARING_NOT_SHARED 
PORTSHARING_SHARED 
Enumerator
FUNCTION_NONE 
FUNCTION_MSP 
FUNCTION_GPS 
FUNCTION_TELEMETRY_FRSKY 
FUNCTION_TELEMETRY_HOTT 
FUNCTION_TELEMETRY_LTM 
FUNCTION_TELEMETRY_SMARTPORT 
FUNCTION_RX_SERIAL 
FUNCTION_BLACKBOX 
FUNCTION_TELEMETRY_MAVLINK 

serial port identifiers

Enumerator
SERIAL_PORT_NONE 
SERIAL_PORT_UART1 
SERIAL_PORT_UART2 
SERIAL_PORT_UART3 
SERIAL_PORT_UART4 
SERIAL_PORT_UART5 
SERIAL_PORT_USB_VCP 
SERIAL_PORT_SOFTSERIAL1 
SERIAL_PORT_SOFTSERIAL2 
SERIAL_PORT_IDENTIFIER_MAX 

Function Documentation

struct serial_port_config __attribute__ ( (packed)  )

Variable Documentation

typedef __attribute__
uint8_t blackbox_baudrateIndex
uint16_t functionMask
uint8_t gps_baudrateIndex
uint8_t msp_baudrateIndex
uint8_t reboot_character
uint8_t telemetry_baudrateIndex