You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
391 B
Go

// +build !linux
package rfm69
// SPIDevice is a device
type SPIDevice struct {
}
// NewSPIDevice creates a new device
func NewSPIDevice() (*SPIDevice, error) {
return &SPIDevice{}, nil
}
// Xfer cross transfer
func (d *SPIDevice) Xfer(tx []byte) ([]byte, error) {
length := len(tx)
rx := make([]byte, length)
return rx, nil
}
// Close closes the fd
func (d *SPIDevice) Close() {
}