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

     1  package rtl8720dn
     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  	debugRpc                      // show rtl8720dn cmds
     9  
    10  	debugOff = 0
    11  	debugAll = debugBasic | debugNetdev | debugRpc
    12  )
    13  
    14  func debugging(want debug) bool {
    15  	return (_debug & want) != 0
    16  }