Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParametersForKind = map[devices.Kind]Parameters{ devices.Nano3: &epNano3G{}, devices.Nano4: newEPNano4G(), devices.Nano5: newEPNano5G(), }
Functions ¶
Types ¶
type Parameters ¶
type Parameters interface { // Address of the DFU data buffer. DFUBufAddr() uint32 // Address at which payload begins execution, within the DFU data buffer, // as jumped into by the SetupPacket. ExecAddr() uint32 // Address of the USB DMA buffer, ie. the SETUP packet currently being // processed. USBBufAddr() uint32 // Address of trampoline in bootrom, jumped to by handler. TrampolineAddr() uint16 // Setup packet to be sent. This must also be valid ARM code, as it happens // to be executed. SetupPacket() []byte AESCall() []uasm.Statement HaxedDFUPayload() []uasm.Statement DisableICache() []uasm.Statement NANDInit(bank uint32) ([]uasm.Statement, error) NANDReadPage(bank, page, offset uint32) ([]uasm.Statement, uint32) NORInit(spino uint32) ([]uasm.Statement, error) NORRead(spino uint32, offset uint32) ([]uasm.Statement, uint32) }
Click to show internal directories.
Click to hide internal directories.