PER Firmware
Loading...
Searching...
No Matches
usb_device.h File Reference

Periodic CAN<->USB forwarding. More...

#include <stddef.h>
#include <stdint.h>
#include "phal_G4/usb/usb.h"
#include "timestamped_frame/timestamped_frame.h"
Include dependency graph for usb_device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cannector_tx_frame_t
 CAN frame structure for USB -> CAN transmission. More...
 
struct  usb_rx_queue_t
 

Functions

void usb_rx_enqueue (const cannector_tx_frame_t *frames, size_t count)
 
void usb_periodic (void)
 

Variables

static constexpr size_t MAX_FRAMES_PER_PACKET = 4U
 
static constexpr size_t USB_RX_QUEUE_CAPACITY = 32U
 

Detailed Description

Periodic CAN<->USB forwarding.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
Millan Kumar (kumar.nosp@m.798@.nosp@m.purdu.nosp@m.e.ed.nosp@m.u)

Function Documentation

◆ usb_periodic()

void usb_periodic ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usb_rx_enqueue()

void usb_rx_enqueue ( const cannector_tx_frame_t * frames,
size_t count )
Here is the caller graph for this function:

Variable Documentation

◆ MAX_FRAMES_PER_PACKET

size_t MAX_FRAMES_PER_PACKET = 4U
staticconstexpr

◆ USB_RX_QUEUE_CAPACITY

size_t USB_RX_QUEUE_CAPACITY = 32U
staticconstexpr