file_identifier "EVTS";

namespace dv;

struct Event {
	/// Timestamp (µs).
	timestamp: int64;
	// X coordinate of event.
	x: int16;
	// Y coordinate of event.
	y: int16;
	// Change polarity (1=ON/0=OFF).
	polarity: bool;
}

table EventPacket {
	elements: [Event] (native_inline);
}

root_type EventPacket;
