# Atmel EDBG-based Tools Protocols
Enveloped AVR commands, responses & events

Sidebar | Prev | Up | Next

### Unwrapping AVR events

To RECEIVE an AVR event from the EDBG, a AVR_EVT packet must be sent (ie: polling for events) in the same manner as described for responses.

Table 33. Wrapping AVR_EVT

Field | Size | Description
--- | --- | ---
AVR_EVT | 1 byte | 0x82

The response to this send is:

Table 34. Unwrapping AVR_EVT

Field | Size | Description
--- | --- | ---
AVR_EVT | 1 byte | 0x82
Size | 2 byte, MSB first | Number of event bytes
Event | N bytes | Enveloped AVR event

Size of 0x0000 indicates that no event data is available, and the rest of the packet is ignored.

Prev | Up | Next
| Home |