Documentation ¶
Index ¶
- Constants
- Variables
- type Channel
- type ModuleProps
- type P1AM
- func (p *P1AM) Active() (bool, error)
- func (p *P1AM) ConfigureWatchdog(interval time.Duration, reset bool) error
- func (p *P1AM) Initialize() error
- func (p *P1AM) PetWatchdog() error
- func (p *P1AM) Read(data []byte) (int, error)
- func (p *P1AM) SetEnabled(enabled bool)
- func (p *P1AM) Slot(i int) *Slot
- func (p *P1AM) StartWatchdog() error
- func (p *P1AM) StopWatchdog() error
- func (p *P1AM) Version() ([3]byte, error)
- func (p *P1AM) Write(data []byte) (int, error)
- type Slot
Constants ¶
View Source
const ACTIVE_HDR = 0x04
View Source
const ANALOG_IN_BLOCK = 1
View Source
const ANALOG_OUT_BLOCK = 3
View Source
const BURNOUT_STATUS = 5
View Source
const CFG_HDR = 0x10
View Source
const CONFIGWD_HDR = 0x33
View Source
const DISCRETE_IN_BLOCK = 0
View Source
const DISCRETE_OUT_BLOCK = 2
View Source
const DROPOUT_HDR = 0x05
View Source
const DUMMY = 0xFF
View Source
const EMPTY_SLOT_ID = 0xFFFFFFFE
View Source
const FW_UPDATE_HDR = 0xAA
View Source
const HOLD = 0x00
View Source
const MAX_TIMEOUT = 0xFFFFFFFF
View Source
const MISSING24V_STATUS = 3
View Source
const MOD_HDR = 0x02
View Source
const NUMBER_OF_MODULES = 15 //Current max 15 Modules
View Source
const OVER_RANGE_STATUS = 11
View Source
const PETWD_HDR = 0x30
View Source
const READ_ANALOG_HDR = 0x51
View Source
const READ_BLOCK_HDR = 0x52
View Source
const READ_CFG_HDR = 0x11
View Source
const READ_DISCRETE_HDR = 0x50
View Source
const READ_STATUS_HDR = 0x40
View Source
const STARTWD_HDR = 0x31
View Source
const STATUS_IN_BLOCK = 4
View Source
const STOPWD_HDR = 0x32
View Source
const SWITCH_BUILTIN = 31
View Source
const TOGGLE = 0x01
View Source
const UNDER_RANGE_STATUS = 7
View Source
const VERSION_HDR = 0x03
View Source
const WRITE_ANALOG_HDR = 0x61
View Source
const WRITE_BLOCK_HDR = 0x62
View Source
const WRITE_DISCRETE_HDR = 0x60
Variables ¶
View Source
var Controller = P1AM{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func (Channel) ReadDiscrete ¶
func (Channel) WriteDiscrete ¶
type ModuleProps ¶
type P1AM ¶
type P1AM struct { // SkipAutoConfig will skip loading a default configuration into each module. SkipAutoConfig bool Slots int // contains filtered or unexported fields }
func (*P1AM) ConfigureWatchdog ¶
func (*P1AM) Initialize ¶
func (*P1AM) PetWatchdog ¶
func (*P1AM) SetEnabled ¶
func (*P1AM) StartWatchdog ¶
func (*P1AM) StopWatchdog ¶
type Slot ¶
type Slot struct { ID uint32 // TODO: Embed this? Props *ModuleProps // contains filtered or unexported fields }
func (*Slot) ReadDiscrete ¶
func (*Slot) WriteDiscrete ¶
Click to show internal directories.
Click to hide internal directories.