SAMV71 Xplained Ultra Software Package 1.3

main.c File Reference

#include "board.h"
#include "USBD.h"
#include "CDCDEEMDriver.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Defines

#define MAXPACKETSIZE   1536
#define ETH_TX_BUFFERS   64
#define ETH_RX_BUFFERS   64
#define ETH_BUFF_SIZE   1536
#define DUMMY_BUFFERS   2
#define DUMMY_BUFF_SIZE   128

Functions

 COMPILER_ALIGNED (8)
void USBDDriverCallbacks_ConfigurationChanged (unsigned char cfgnum)
void USBDCallbacks_RequestReceived (const USBGenericRequest *request)
int main (void)
 Main function. Execution starts here.

Variables

const USBDDriverDescriptors cdcdEEMDriverDescriptors

Detailed Description

This file contains all the specific code for the usb_eem example.

Definition in file main.c.


Define Documentation

#define MAXPACKETSIZE   1536

Size in bytes of the packet used for reading data from USB

Definition at line 97 of file main.c.


Function Documentation

COMPILER_ALIGNED (  ) 

TX callbacks list Gmac interrupt handler

Definition at line 145 of file main.c.

Here is the call graph for this function:

void USBDCallbacks_RequestReceived ( const USBGenericRequest request  ) 

Invoked when a new SETUP request is received from the host. Forwards the request to the Mass Storage device driver handler function.

Parameters:
request Pointer to a USBGenericRequest instance.

Definition at line 198 of file main.c.

Here is the call graph for this function:

void USBDDriverCallbacks_ConfigurationChanged ( unsigned char  cfgnum  ) 

Invoked when the configuration of the device changes. Parse used endpoints.

Parameters:
cfgnum New configuration number.

Definition at line 188 of file main.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines