go-onerng/commands.go
Dave Henderson 926b9f6304
Some incomplete initial code
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2018-08-01 23:47:54 -04:00

34 lines
993 B
Go

package onerng
const (
// CmdVersion - print firmware version (as "Version n")
CmdVersion = "cmdv\n"
// CmdFlush - flush entropy pool
CmdFlush = "cmdw\n"
// CmdImage - extract the signed firmware image for verification
CmdImage = "cmdX\n"
// CmdID - print hardware ID
CmdID = "cmdI\n"
// CmdRun - start the task
CmdRun = "cmdO\n"
// CmdPause - stop/pause the task
CmdPause = "cmdo\n"
// CmdAvalancheWhitener - Avalanche noise with whitener (default)
CmdAvalancheWhitener = "cmd0\n"
// CmdAvalanche - Raw avalanche noise
CmdAvalanche = "cmd1\n"
// CmdAvalancheRFWhitener - Avalanche noise and RF noise with whitener
CmdAvalancheRFWhitener = "cmd2\n"
// CmdAvalancheRF - Raw avalanche noise and RF noise
CmdAvalancheRF = "cmd3\n"
// CmdSilent - No noise (necessary for image extraction)
CmdSilent = "cmd4\n"
// CmdSilent2 - No noise
CmdSilent2 = "cmd5\n"
// CmdRFWhitener - RF noise with whitener
CmdRFWhitener = "cmd6\n"
// CmdRF - Raw RF noise
CmdRF = "cmd7\n"
)