AVRISP-MKII Clone Programmer Project

Functions
AVRISP-MKII.c File Reference
`#include "AVRISP-MKII.h"`

## Functions

int | main (void)
void | SetupHardware (void)
void | EVENT_USB_Device_Connect (void)
void | EVENT_USB_Device_Disconnect (void)
void | EVENT_USB_Device_ConfigurationChanged (void)
void | AVRISP_Task (void)
uint16_t | CALLBACK_USB_GetDescriptor (const uint16_t wValue, const uint16_t wIndex, const void **const DescriptorAddress)

## Detailed Description

Main source file for the AVRISP project. This file contains the main tasks of the project and is responsible for the initial application hardware configuration.

## Function Documentation

## § AVRISP_Task()

void AVRISP_Task | ( | void |  | ) |

Processes incoming V2 Protocol commands from the host, returning a response when required.

## § CALLBACK_USB_GetDescriptor()

uint16_t CALLBACK_USB_GetDescriptor | ( | const uint16_t | wValue,
|  | const uint16_t | wIndex,
|  | const void **const | DescriptorAddress
| ) |  |

This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" documentation) by the application code so that the address and size of a requested descriptor can be given to the USB library. When the device receives a Get Descriptor request on the control endpoint, this function is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the USB host.

Parameters

  [in] | wValue | Descriptor type and index to retrieve
  [in] | wIndex | Sub-index to retrieve (such as a localized string language)
  [out] | DescriptorAddress | Address of the retrieved descriptor

Returns
  Length of the retrieved descriptor in bytes, or NO_DESCRIPTOR if the descriptor was not found

## § EVENT_USB_Device_ConfigurationChanged()

void EVENT_USB_Device_ConfigurationChanged | ( | void |  | ) |

Event handler for the library USB Configuration Changed event.

## § EVENT_USB_Device_Connect()

void EVENT_USB_Device_Connect | ( | void |  | ) |

Event handler for the library USB Connection event.

## § EVENT_USB_Device_Disconnect()

void EVENT_USB_Device_Disconnect | ( | void |  | ) |

Event handler for the library USB Disconnection event.

## § main()

int main | ( | void |  | ) |

Main program entry point. This routine contains the overall program flow, including initial setup of all components and the main program loop.

## § SetupHardware()

void SetupHardware | ( | void |  | ) |

Configures the board hardware and chip peripherals for the demo's functionality.