Documentation ¶
Index ¶
- Constants
- func Bytes[T any](in *T) []byte
- func Itoa(val int) string
- func PrintByte(b byte)
- func PrintBytes(s []byte)
- func SetDataPacketSize(sz int)
- func ToUint32(buffer []byte) (val uint32)
- func Uitoa(val uint) string
- type Event
- type GroupId
- type Hif
- func (hif *Hif) ChipSleep() error
- func (hif *Hif) ChipWake() (err error)
- func (hif *Hif) GetChipId() (uint32, error)
- func (hif *Hif) GetGPIOValue(gpio uint8) (state uint8, err error)
- func (hif *Hif) Halt() error
- func (hif *Hif) Init() (err error)
- func (hif *Hif) InitDownload() (err error)
- func (hif *Hif) Isr() (err error)
- func (hif *Hif) OpenEventChannel() <-chan Event
- func (hif *Hif) ReadBlock(address uint32, data []byte) (err error)
- func (hif *Hif) ReadRegister(address uint32) (uint32, error)
- func (hif *Hif) Receive(address uint32, data []byte, done bool) (err error)
- func (hif *Hif) RegisterCallback(group GroupId, callback IsrCallback)
- func (hif *Hif) Send(group GroupId, opcode OpcodeId, control, data []byte, offset uint16) (err error)
- func (hif *Hif) SetGPIODirection(gpio, direction uint8) (err error)
- func (hif *Hif) SetGPIOValue(gpio, state uint8) (err error)
- func (hif *Hif) Shutdown()
- func (hif *Hif) WriteBlock(address uint32, data []byte) (err error)
- func (hif *Hif) WriteRegister(address, value uint32) error
- type IsrCallback
- type OpcodeId
Constants ¶
View Source
const ( GroupMax = 9 HifHdrOffset = 8 )
Variables ¶
This section is empty.
Functions ¶
func PrintBytes ¶
func PrintBytes(s []byte)
func SetDataPacketSize ¶
func SetDataPacketSize(sz int)
SetDataPacketSize sets the data packet size returned from the device client. Call this before initialization.
Types ¶
type Hif ¶
type Hif struct {
// contains filtered or unexported fields
}
func (*Hif) InitDownload ¶
func (*Hif) OpenEventChannel ¶
func (*Hif) RegisterCallback ¶
func (hif *Hif) RegisterCallback(group GroupId, callback IsrCallback)
func (*Hif) SetGPIODirection ¶
func (*Hif) SetGPIOValue ¶
func (*Hif) WriteRegister ¶
Click to show internal directories.
Click to hide internal directories.