mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
18 lines
437 B
Go
18 lines
437 B
Go
package wifinina
|
|
|
|
type debug uint8
|
|
|
|
const (
|
|
debugBasic debug = 1 << iota // show fw version, mac addr, etc
|
|
debugNetdev // show netdev entry points
|
|
debugCmd // show non-chatty wifinina cmds
|
|
debugDetail // show chatty wifinina cmds
|
|
|
|
debugOff = 0
|
|
debugAll = debugBasic | debugNetdev | debugCmd | debugDetail
|
|
)
|
|
|
|
func debugging(want debug) bool {
|
|
return (_debug & want) != 0
|
|
}
|