Commit c382b508 authored by Fabian Bläse's avatar Fabian Bläse
Browse files

initial commit

parents
function bool8 heuristic_fct ()
{
return bool8::true;
}
enum8 T_cmsis_type
{
avr_cmd 0x80
avr_rsp 0x81
avr_evt 0x82
}
struct T_msg_header_type_wsgd
{
byte_order big_endian;
T_cmsis_type Type;
if (1) {
uint8 FragmentInfo;
uint16 Size;
}
}
struct T_avr_communication
{
uint8 SOF;
uint8 Protocol_version;
byte_order little_endian;
uint16 Sequence_ID;
}
struct T_cmsis_cmd
{
T_msg_header_type_wsgd header;
T_avr_communication avr_communication;
print usb;
raw(*) msg_end ;
}
struct T_cmsis_rsp
{
T_msg_header_type_wsgd header;
T_avr_communication avr_communication;
print usb;
raw(*) msg_end ;
}
struct T_cmsis_evt
{
T_msg_header_type_wsgd header;
T_avr_communication avr_communication;
print usb;
raw(*) msg_end ;
}
switch T_msg_switch T_my_msg_id
{
case T_cmsis_type::avr_cmd : T_cmsis_cmd "" ;
case T_cmsis_type::avr_rsp : T_cmsis_rsp "" ;
case T_cmsis_type::avr_evt : T_cmsis_evt "" ;
default :
# No time to describe all the messages
T_msg_header_type_wsgd header ;
raw(*) msg_end ;
}
# Debug global flag
DEBUG
# Protocol's names.
PROTONAME Microchip EDBG
PROTOSHORTNAME EDBG
PROTOABBREV edbg
# Specify when the dissector is used.
PARENT_HEURISTIC usb.interrupt
HEURISTIC_FUNCTION heuristic_fct
MSG_HEADER_TYPE T_msg_header_type_wsgd
MSG_ID_FIELD_NAME Type
MSG_MAIN_TYPE T_msg_switch(Type)
MSG_TOTAL_LENGTH 64
PROTO_TYPE_DEFINITIONS
# Debug flag only for interpreting the types (initialization)
# DEBUG
include example_with_capture.fdesc;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment