tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/wifinina/debug.go (about)

     1  package wifinina
     2  
     3  type debug uint8
     4  
     5  const (
     6  	debugBasic  debug = 1 << iota // show fw version, mac addr, etc
     7  	debugNetdev                   // show netdev entry points
     8  	debugCmd                      // show non-chatty wifinina cmds
     9  	debugDetail                   // show chatty wifinina cmds
    10  
    11  	debugOff = 0
    12  	debugAll = debugBasic | debugNetdev | debugCmd | debugDetail
    13  )
    14  
    15  func debugging(want debug) bool {
    16  	return (_debug & want) != 0
    17  }