SAMV71 Xplained Ultra Software Package 1.5

main.c File Reference

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

Go to the source code of this file.

Defines

#define NO_PUSHBUTTON
#define SPEED_X   4
#define SPEED_Y   4

Functions

void USBDCallbacks_RequestReceived (const USBGenericRequest *request)
void USBDDriverCallbacks_ConfigurationChanged (uint8_t cfgnum)
int main (void)

Variables

USBDDriverDescriptors hiddMouseDriverDescriptors

Detailed Description

This file contains all the specific code for the usb_hid_mouse

Contents

The code can be roughly broken down as follows:

Definition in file main.c.


Define Documentation

#define SPEED_X   4

Speed of pointer movement X

Definition at line 126 of file main.c.

#define SPEED_Y   4

Speed of pointer movement Y

Definition at line 129 of file main.c.


Function Documentation

int main ( void   ) 

usb_hid_mouse application entry.

Initializes the system and then monitors buttons, sending the corresponding character when one is pressed.

Definition at line 271 of file main.c.

Here is the call graph for this function:

void USBDCallbacks_RequestReceived ( const USBGenericRequest request  ) 

Invoked whenever a SETUP request is received from the host. Forwards the request to the standard handler.

Definition at line 219 of file main.c.

Here is the call graph for this function:

void USBDDriverCallbacks_ConfigurationChanged ( uint8_t  cfgnum  ) 

Invoked when the configuration of the device changes. Start reading output reports.

Parameters:
cfgnum New configuration number.

Definition at line 229 of file main.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines