Classes | Macros | Functions | Variables
communications.cpp File Reference
#include <asf.h>
#include "../../../src/ISUtilities.h"
#include "../../../src/ISLogger.h"
#include "../../../hw-libs/misc/bootloaderApp.h"
#include "../drivers/d_quadEnc.h"
#include "ISLogFileFatFs.h"
#include "xbee.h"
#include "wifi.h"
#include "sd_card_logger.h"
#include "CAN.h"
#include "../hw-libs/communications/CAN_comm.h"
#include "../src/protocol_nmea.h"
#include "user_interface.h"
#include "communications.h"
Include dependency graph for communications.cpp:

Go to the source code of this file.

Classes

struct  comm_rx_port_t
 

Macros

#define CAN_COM_PORT   1
 
#define CAN_FTR   0xFE;
 
#define CAN_HDR   0xFC;
 
#define COM_RX_PORT_COUNT   (EVB2_PORT_COUNT-1)
 

Functions

void callback_cdc_set_config (uint8_t port, usb_cdc_line_coding_t *cfg)
 
void callback_cdc_set_dtr (uint8_t port, bool b_enable)
 
void com_bridge_forward (uint32_t srcPort, uint8_t *buf, int len)
 
void com_bridge_smart_forward (uint32_t srcPort, uint32_t ledPin)
 
void com_bridge_smart_forward_xstream (uint32_t srcPort, StreamBufferHandle_t xStreamBuffer)
 
void communications_init (void)
 
int comRead (int serialNum, unsigned char *buf, int bufSize, uint32_t ledPin)
 
void comunications_set_host_data_callback (pfnHandleHostData pfn)
 
void comunications_set_uins_data_callback (pfnHandleUinsData pfn)
 
int comWrite (int serialNum, const unsigned char *buf, int size, uint32_t ledPin)
 
void handle_data_from_host (is_comm_instance_t *comm, protocol_type_t ptype, uint32_t srcPort)
 
void handle_data_from_uINS (p_data_hdr_t &dataHdr, uint8_t *data)
 
void log_uINS_data (cISLogger &logger, is_comm_instance_t &comm)
 
void sendRadio (uint8_t *data, int dataSize, bool sendXbee, bool sendXrad)
 
void step_com_bridge (is_comm_instance_t &comm)
 
void uINS_stream_enable_PPD (void)
 
void uINS_stream_enable_std (void)
 
void uINS_stream_stop_all (void)
 
void update_flash_cfg (evb_flash_cfg_t &newCfg)
 

Variables

is_comm_instance_t g_commTx = {}
 
comm_rx_port_t g_comRxPort [COM_RX_PORT_COUNT] = {}
 
StreamBufferHandle_t g_xStreamBufferUINS
 
StreamBufferHandle_t g_xStreamBufferWiFiRx
 
StreamBufferHandle_t g_xStreamBufferWiFiTx
 
static pfnHandleHostData s_pfnHandleHostData = NULLPTR
 
static pfnHandleUinsData s_pfnHandleUinsData = NULLPTR
 
static uint8_t s_rxDecodeBuffer [PKT_BUF_SIZE] = {}
 

Macro Definition Documentation

◆ CAN_COM_PORT

#define CAN_COM_PORT   1

Definition at line 585 of file communications.cpp.

◆ CAN_FTR

#define CAN_FTR   0xFE;

Definition at line 587 of file communications.cpp.

◆ CAN_HDR

#define CAN_HDR   0xFC;

Definition at line 586 of file communications.cpp.

◆ COM_RX_PORT_COUNT

#define COM_RX_PORT_COUNT   (EVB2_PORT_COUNT-1)

Definition at line 39 of file communications.cpp.

Function Documentation

◆ callback_cdc_set_config()

void callback_cdc_set_config ( uint8_t  port,
usb_cdc_line_coding_t cfg 
)

Definition at line 103 of file communications.cpp.

◆ callback_cdc_set_dtr()

void callback_cdc_set_dtr ( uint8_t  port,
bool  b_enable 
)

Definition at line 209 of file communications.cpp.

◆ com_bridge_forward()

void com_bridge_forward ( uint32_t  srcPort,
uint8_t *  buf,
int  len 
)

Definition at line 753 of file communications.cpp.

◆ com_bridge_smart_forward()

void com_bridge_smart_forward ( uint32_t  srcPort,
uint32_t  ledPin 
)

Definition at line 637 of file communications.cpp.

◆ com_bridge_smart_forward_xstream()

void com_bridge_smart_forward_xstream ( uint32_t  srcPort,
StreamBufferHandle_t  xStreamBuffer 
)

Definition at line 715 of file communications.cpp.

◆ communications_init()

void communications_init ( void  )

Definition at line 879 of file communications.cpp.

◆ comRead()

int comRead ( int  serialNum,
unsigned char *  buf,
int  bufSize,
uint32_t  ledPin 
)

Definition at line 72 of file communications.cpp.

◆ comunications_set_host_data_callback()

void comunications_set_host_data_callback ( pfnHandleHostData  pfn)

Definition at line 873 of file communications.cpp.

◆ comunications_set_uins_data_callback()

void comunications_set_uins_data_callback ( pfnHandleUinsData  pfn)

Definition at line 867 of file communications.cpp.

◆ comWrite()

int comWrite ( int  serialNum,
const unsigned char *  buf,
int  size,
uint32_t  ledPin 
)

Definition at line 53 of file communications.cpp.

◆ handle_data_from_host()

void handle_data_from_host ( is_comm_instance_t comm,
protocol_type_t  ptype,
uint32_t  srcPort 
)

Definition at line 482 of file communications.cpp.

◆ handle_data_from_uINS()

void handle_data_from_uINS ( p_data_hdr_t dataHdr,
uint8_t *  data 
)

Definition at line 288 of file communications.cpp.

◆ log_uINS_data()

void log_uINS_data ( cISLogger logger,
is_comm_instance_t comm 
)

Definition at line 338 of file communications.cpp.

◆ sendRadio()

void sendRadio ( uint8_t *  data,
int  dataSize,
bool  sendXbee,
bool  sendXrad 
)

Definition at line 589 of file communications.cpp.

◆ step_com_bridge()

void step_com_bridge ( is_comm_instance_t comm)

Definition at line 811 of file communications.cpp.

◆ uINS_stream_enable_PPD()

void uINS_stream_enable_PPD ( void  )

Definition at line 275 of file communications.cpp.

◆ uINS_stream_enable_std()

void uINS_stream_enable_std ( void  )

Definition at line 264 of file communications.cpp.

◆ uINS_stream_stop_all()

void uINS_stream_stop_all ( void  )

Definition at line 258 of file communications.cpp.

◆ update_flash_cfg()

void update_flash_cfg ( evb_flash_cfg_t newCfg)

Definition at line 385 of file communications.cpp.

Variable Documentation

◆ g_commTx

is_comm_instance_t g_commTx = {}

Definition at line 43 of file communications.cpp.

◆ g_comRxPort

comm_rx_port_t g_comRxPort[COM_RX_PORT_COUNT] = {}

Definition at line 40 of file communications.cpp.

◆ g_xStreamBufferUINS

StreamBufferHandle_t g_xStreamBufferUINS

Definition at line 45 of file communications.cpp.

◆ g_xStreamBufferWiFiRx

StreamBufferHandle_t g_xStreamBufferWiFiRx

Definition at line 46 of file communications.cpp.

◆ g_xStreamBufferWiFiTx

StreamBufferHandle_t g_xStreamBufferWiFiTx

Definition at line 47 of file communications.cpp.

◆ s_pfnHandleHostData

pfnHandleHostData s_pfnHandleHostData = NULLPTR
static

Definition at line 50 of file communications.cpp.

◆ s_pfnHandleUinsData

pfnHandleUinsData s_pfnHandleUinsData = NULLPTR
static

Definition at line 49 of file communications.cpp.

◆ s_rxDecodeBuffer

uint8_t s_rxDecodeBuffer[PKT_BUF_SIZE] = {}
static

Definition at line 41 of file communications.cpp.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58