Classes | Typedefs | Functions | Variables
communications.h File Reference
#include <asf.h>
#include "globals.h"
#include "spiTouINS.h"
#include "../../../src/ISLogger.h"
#include "../hw-libs/communications/CAN_comm.h"
Include dependency graph for communications.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  PACKED
 
union  PACKED
 

Typedefs

typedef struct PACKED is_can_message
 
typedef struct PACKED is_evb_log_stream
 
typedef void(* pfnHandleHostData) (is_comm_instance_t *comm, protocol_type_t ptype, uint32_t srcPort)
 
typedef void(* pfnHandleUinsData) (p_data_hdr_t &dataHdr, uDatasets &data)
 

Functions

void callback_cdc_disable (void)
 
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 communications_init (void)
 
int comRead (int serialNum, unsigned char *buf, int size, uint32_t ledPin)
 
int comRxUsed (int serialNum)
 
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 log_uINS_data (cISLogger &logger, is_comm_instance_t &comm)
 
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)
 

Variables

is_comm_instance_t g_commTx
 
bool g_usb_cdc_open
 

Typedef Documentation

◆ is_can_message

typedef struct PACKED is_can_message

◆ is_evb_log_stream

typedef struct PACKED is_evb_log_stream

◆ pfnHandleHostData

typedef void(* pfnHandleHostData) (is_comm_instance_t *comm, protocol_type_t ptype, uint32_t srcPort)

Definition at line 27 of file communications.h.

◆ pfnHandleUinsData

typedef void(* pfnHandleUinsData) (p_data_hdr_t &dataHdr, uDatasets &data)

Definition at line 26 of file communications.h.

Function Documentation

◆ callback_cdc_disable()

void callback_cdc_disable ( void  )

◆ 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.

◆ communications_init()

void communications_init ( void  )

Definition at line 879 of file communications.cpp.

◆ comRead()

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

Definition at line 72 of file communications.cpp.

◆ comRxUsed()

int comRxUsed ( int  serialNum)

◆ 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.

◆ log_uINS_data()

void log_uINS_data ( cISLogger logger,
is_comm_instance_t comm 
)

Definition at line 338 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.

Variable Documentation

◆ g_commTx

Definition at line 43 of file communications.cpp.

◆ g_usb_cdc_open

bool g_usb_cdc_open


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