Microchip® Advanced Software Framework

host_cdc_task.c File Reference
#include <stdio.h>
#include "compiler.h"
#include "host_cdc_task.h"
#include "usart.h"
#include "conf_usb.h"
#include "board.h"
#include "FreeRTOS.h"
#include "task.h"
#include "cdc.h"
#include "usb_drv.h"
#include "usb_host_enum.h"
#include "usb_host_task.h"

Functions

void cdc_pipe_out_usb_flush (void)
 cdc_pipe_out_usb_flush More...
 
void host_cdc_get_encapsulated_response (void)
 This function requests a format-specific packet. More...
 
void host_cdc_get_line_coding (void)
 This function requests the communication settings from the device. More...
 
void host_cdc_send_encapsulated_command (void)
 This function sends a format-specific packet. More...
 
void host_cdc_set_line_coding (void)
 This function set communication settings on the device. More...
 
void host_cdc_task (void *pvParameters)
 This function manages the host CDC task. More...
 
void host_cdc_task_init (void)
 This function initializes the host CDC task. More...
 
void host_sof_action (void)
 host_sof_action More...
 

Variables

volatile bool cdc_connected
 
uint8_t cdc_interface_comm
 
volatile bool cdc_new_device_connected
 
uint8_t cdc_stream_in_array [CDC_STREAM_IN_SIZE]
 
uint8_t cdc_stream_out_array [CDC_STREAM_OUT_SIZE]
 
uint8_t host_rx_cnt
 
uint8_t host_tx_cnt
 
uint8_t pipe_cdc_comm_int
 
uint8_t pipe_cdc_data_bulkin
 
uint8_t pipe_cdc_data_bulkout
 
static volatile uint16_t sof_cnt
 

void cdc_pipe_out_usb_flush ( void  )

cdc_pipe_out_usb_flush

This function sends the data stored in the temporary transmit buffer. This function does nothing if there is no data in the buffer.

References cdc_stream_out_array, Host_freeze_pipe, host_send_data(), host_tx_cnt, Host_unfreeze_pipe, pipe_cdc_data_bulkin, pipe_cdc_data_bulkout, and PIPE_GOOD.

Referenced by host_cdc_task().

void host_cdc_get_encapsulated_response ( void  )
void host_cdc_get_line_coding ( void  )
void host_cdc_task_init ( void  )

uint8_t cdc_stream_in_array[CDC_STREAM_IN_SIZE]

Referenced by host_cdc_task().

uint8_t cdc_stream_out_array[CDC_STREAM_OUT_SIZE]
uint8_t host_rx_cnt
uint8_t host_tx_cnt
uint8_t pipe_cdc_comm_int

Referenced by host_cdc_task().

uint8_t pipe_cdc_data_bulkin
uint8_t pipe_cdc_data_bulkout
volatile uint16_t sof_cnt
static