Versions in this module Expand all Collapse all v0 v0.1.0 Apr 16, 2024 Changes in this version type RevPiControl + func (ctrl *RevPiControl) ReadAI(name string) (v uint32, err error) + func (ctrl *RevPiControl) ReadDI(name string) (v bool, err error) + func (ctrl *RevPiControl) WriteAO(name string, v uint32) (err error) + func (ctrl *RevPiControl) WriteDO(name string, v bool) (err error) v0.0.1 Apr 9, 2024 Changes in this version + const KB_DIO_RESET_COUNTER — linux/amd64 + const KB_FIND_VARIABLE — linux/amd64 + const KB_GET_DEVICE_INFO — linux/amd64 + const KB_GET_DEVICE_INFO_LIST — linux/amd64 + const KB_GET_LAST_MESSAGE — linux/amd64 + const KB_GET_VALUE — linux/amd64 + const KB_INTERN_IO_MSG — linux/amd64 + const KB_RESET — linux/amd64 + const KB_SET_VALUE — linux/amd64 + const KB_WAIT_FOR_EVENT — linux/amd64 + const PICONTROL_DEVICE — linux/amd64 + const PICONTROL_NOT_CONNECTED — linux/amd64 + const PICONTROL_NOT_CONNECTED_MASK — linux/amd64 + const PICONTROL_SW_MODBUS_RTU_MASTER — linux/amd64 + const PICONTROL_SW_MODBUS_RTU_SLAVE — linux/amd64 + const PICONTROL_SW_MODBUS_TCP_MASTER — linux/amd64 + const PICONTROL_SW_MODBUS_TCP_SLAVE — linux/amd64 + const PICONTROL_UPLOAD_FIRMWARE — linux/amd64 + const REV_PI_DEV_CNT_MAX — linux/amd64 + const REV_PI_DEV_FIRST_RIGHT — linux/amd64 + const REV_PI_ERROR_MSG_LEN — linux/amd64 + func ByteToUint8Array(s []byte) (r [32]int8) + func GetModuleName(moduletype uint16) string + func IsModuleConnected(moduletype uint16) bool + func NumToBytes(num interface{}) ([]byte, error) + type RevPiControl struct + func NewRevPiControl() *RevPiControl + func (c *RevPiControl) Close() (err error) + func (c *RevPiControl) FindVariable(name string) (found bool) + func (c *RevPiControl) GetBitValue(pSpiValue *SPIValue) (err error) + func (c *RevPiControl) GetDeviceInfo(devInfo *SDeviceInfo) (result int, err error) + func (c *RevPiControl) GetDeviceInfoList() (devInfo []SDeviceInfo, err error) + func (c *RevPiControl) GetVariableInfo(name string) (pSpiVariable *SPIVariable, err error) + func (c *RevPiControl) Open() (err error) + func (c *RevPiControl) Read(offset uint32, pData []byte) (n int, err error) + func (c *RevPiControl) Reset() (err error) + func (c *RevPiControl) ResetCounter(address uint8, bitfield uint16) (result int, err error) + func (c *RevPiControl) SetBitValue(pSpiValue *SPIValue) (err error) + func (c *RevPiControl) UpdateFirmware(addrP uint32) (result int, err error) + func (c *RevPiControl) WaitForEvent() (err error) + func (c *RevPiControl) Write(offset uint32, pData []byte) (n int, err error) + type SDIOResetCounter struct — linux/amd64 + I16uBitfield uint16 + I8uAddress uint8 + type SDeviceInfo struct — linux/amd64 + I16uBaseOffset uint16 + I16uConfigLength uint16 + I16uConfigOffset uint16 + I16uEntries uint16 + I16uFirstEntry uint16 + I16uHW_Revision uint16 + I16uInputLength uint16 + I16uInputOffset uint16 + I16uModuleType uint16 + I16uOutputLength uint16 + I16uOutputOffset uint16 + I16uSW_Major uint16 + I16uSW_Minor uint16 + I32uSVN_Revision uint32 + I32uSerialnumber uint32 + I8uActive uint8 + I8uAddress uint8 + I8uModuleState uint8 + I8uReserve [30]uint8 + Pad_cgo_0 [2]byte + type SEntryInfo struct — linux/amd64 + I16uBitLength uint16 + I16uIndex uint16 + I16uOffset uint16 + I32uDefault uint32 + I8uAddress uint8 + I8uBitPos uint8 + I8uType uint8 + StrVarName [32]int8 + type SPIValue struct — linux/amd64 + I16uAddress uint16 + I8uBit uint8 + I8uValue uint8 + type SPIVariable struct — linux/amd64 + I16uAddress uint16 + I16uLength uint16 + I8uBit uint8 + StrVarName [32]int8