Hi
When i was reading one of the c code i could not understand the following logic.
Here is logic and where it is define the function
There is declaration for the function "APP_DeviceMouseIdleRateCallback"
but later if is define by other name and used them.
can any one explain me what is exactly done...
When i was reading one of the c code i could not understand the following logic.
Here is logic and where it is define the function
C:
in usb_device_hid.c file
extern void USB_DEVICE_HID_IDLE_RATE_CALLBACK(uint8_t reportId, uint8_t idleRate);
in usb_config.h file
#define USB_DEVICE_HID_IDLE_RATE_CALLBACK APP_DeviceMouseIdleRateCallback
in app_device_mouse.c
void APP_DeviceMouseIdleRateCallback(uint8_t reportId, uint8_t idleRate)
{
//Make sure the host is requesting to set the idleRate on a legal/implemented
//report ID. In applications that don't implement report IDs (such as this
//firmware) the value should be == 0.
if(reportId == 0)
{
mouse.inputReport[reportId].idleRate = idleRate;
}
}
but later if is define by other name and used them.
can any one explain me what is exactly done...