dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Com Port to USB VCP Bridge Module

Files

file  ComUsbBridge.c
 Bridges selected Com Port to the USB VCP emulated serial port.
 

Macros

#define STACK_SIZE_BYTES   480
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW
 
#define BRIDGE_BUF_LEN   10
 

Functions

static void com2UsbBridgeTask (void *parameters)
 
static void usb2ComBridgeTask (void *parameters)
 
static void updateSettings ()
 
static int32_t comUsbBridgeStart (void)
 
static int32_t comUsbBridgeInitialize (void)
 

Variables

static struct pios_thread * com2UsbBridgeTaskHandle
 
static struct pios_thread * usb2ComBridgeTaskHandle
 
static uint32_t usart_port
 
static uint32_t vcp_port
 
static bool module_enabled = false
 

Detailed Description

Macro Definition Documentation

#define BRIDGE_BUF_LEN   10

Definition at line 65 of file ComUsbBridge.c.

#define STACK_SIZE_BYTES   480

Definition at line 60 of file ComUsbBridge.c.

#define TASK_PRIORITY   PIOS_THREAD_PRIO_LOW

Definition at line 63 of file ComUsbBridge.c.

Function Documentation

static void com2UsbBridgeTask ( void *  parameters)
static

Main task. It does not return.

Definition at line 128 of file ComUsbBridge.c.

static int32_t comUsbBridgeInitialize ( void  )
static

Initialise the module

Returns
-1 if initialisation failed
0 on success

Definition at line 102 of file ComUsbBridge.c.

static int32_t comUsbBridgeStart ( void  )
static

Initialise the module

Returns
-1 if initialisation failed
0 on success

Definition at line 84 of file ComUsbBridge.c.

static void updateSettings ( )
static

Definition at line 171 of file ComUsbBridge.c.

static void usb2ComBridgeTask ( void *  parameters)
static

Definition at line 148 of file ComUsbBridge.c.

Variable Documentation

struct pios_thread* com2UsbBridgeTaskHandle
static

Definition at line 70 of file ComUsbBridge.c.

bool module_enabled = false
static

Definition at line 76 of file ComUsbBridge.c.

uint32_t usart_port
static

Definition at line 73 of file ComUsbBridge.c.

struct pios_thread* usb2ComBridgeTaskHandle
static

Definition at line 71 of file ComUsbBridge.c.

uint32_t vcp_port
static

Definition at line 74 of file ComUsbBridge.c.