Versions in this module Expand all Collapse all v0 v0.29.0 Oct 30, 2024 v0.28.0 Jun 18, 2024 v0.27.0 Feb 26, 2024 v0.26.0 Sep 21, 2023 v0.25.0 Jun 11, 2023 v0.24.0 Feb 12, 2023 v0.23.0 Oct 1, 2022 v0.22.0 Aug 16, 2022 v0.21.0 Jul 5, 2022 v0.20.0 Apr 28, 2022 v0.19.0 Jan 26, 2022 v0.18.0 Nov 18, 2021 v0.17.1 Jul 1, 2021 v0.17.0 May 12, 2021 v0.16.0 May 12, 2021 Changes in this version + const ACTIVE_HDR + const ANALOG_IN_BLOCK + const ANALOG_OUT_BLOCK + const BURNOUT_STATUS + const CFG_HDR + const CONFIGWD_HDR + const DISCRETE_IN_BLOCK + const DISCRETE_OUT_BLOCK + const DROPOUT_HDR + const DUMMY + const EMPTY_SLOT_ID + const FW_UPDATE_HDR + const HOLD + const MAX_TIMEOUT + const MISSING24V_STATUS + const MOD_HDR + const NUMBER_OF_MODULES + const OVER_RANGE_STATUS + const PETWD_HDR + const READ_ANALOG_HDR + const READ_BLOCK_HDR + const READ_CFG_HDR + const READ_DISCRETE_HDR + const READ_STATUS_HDR + const STARTWD_HDR + const STATUS_IN_BLOCK + const STOPWD_HDR + const SWITCH_BUILTIN + const TOGGLE + const UNDER_RANGE_STATUS + const VERSION_HDR + const WRITE_ANALOG_HDR + const WRITE_BLOCK_HDR + const WRITE_DISCRETE_HDR + var Controller = P1AM + type Channel struct + func (c Channel) ReadDiscrete() (bool, error) + func (c Channel) WriteDiscrete(value bool) error + type ModuleProps struct + AI byte + AO byte + Config byte + DI byte + DO byte + DataSize byte + ModuleID uint32 + Name string + Status byte + type P1AM struct + SkipAutoConfig bool + Slots int + 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 struct + ID uint32 + Props *ModuleProps + func (s *Slot) Channel(channel int) Channel + func (s *Slot) Configure(data []byte) error + func (s *Slot) ReadDiscrete() (uint32, error) + func (s *Slot) WriteDiscrete(value uint32) error