Versions in this module Expand all Collapse all v0 v0.0.5 Feb 16, 2022 Changes in this version + const FPGA_ADDRESS + const PROGRAM_CTL_REG + const PROGRAM_FLASH_SIZE + const PROGRAM_PAGE_SIZE + const PROGRAM_POF_END_ADDRESS + const PROGRAM_RX_DATA_REG + const PROGRAM_STATUS_REG + const PROGRAM_TX_DATA_REG + var GpioPin = gpioPinDefine + func GetDimmEntry() (string, error) + func GetDongleIoEntry(index uint64, pin int64) (string, error) + func GetFabricoEntry(index uint64) (string, error) + func GetFanDuty(target string, peer bool) (duty string, pwm string, rpm string, fault string, err error) + func GetFanEntry(peer bool) (string, string, error) + func GetFpgaVersion() (string, error) + func GetIomAttLedsEntry(pin int64) (string, error) + func GetLed(target string, peer bool) (value string, err error) + func GetMiscIoEntry(peer bool, pin int64) (string, error) + func GetOdpEntry(peer bool) (vpdEntry string, tempEntry string, err error) + func GetOdpLedsEntry(peer bool, pin int64) (string, error) + func GetPsuCurrent(index int) (string, error) + func GetPsuEntry(peer bool) (eepromEntry string, psuEntry string, err error) + func GetPsuFan(index int) (string, error) + func GetPsuModel(index int) (string, error) + func GetPsuPower(index int) (string, error) + func GetPsuPowerMax(index int) (string, error) + func GetPsuSerial(index int) (string, error) + func GetPsuStatus(index int) (int, error) + func GetPsuTemp(index int) (string, error) + func GetPsuTempMax(index int) (string, error) + func GetPsuVersion(index int) (string, error) + func GetPsuVoltage(index int) (string, error) + func GetPwrVrEntry() (string, string, string, error) + func GetQsfpEepromEntry() (string, string, string, string, string, string, error) + func GetQsfpIoEntry(pin int64) (string, error) + func GetSfpLowPower(port int) (int, error) + func GetSysEepromEntry() (string, error) + func GetTempEntry() (string, error) + func GetThermalDimm() (string, error) + func GetThermalOdp(index int) (string, error) + func GetThermalSsd(index int) (string, error) + func GetThermalSwm(index int) (string, error) + func GetVSensorsEntry() (string, string, string, error) + func IsReseting(port int) (int, error) + func IsSlotA() (bool, error) + func ReadFpga(reg uint32, size uint32) ([]int, error) + func ResetSfp(port int) error + func SetFanDuty(target string, peer bool, duty string) error + func SetLed(target string, value string, peer bool) error + func SetSfpLowPower(port int, lpmode int) error + func UnprotectSysEeprom() error + func UpdateFpga(url string, callback func(name string, curProgress int, maxProgress int)) error + func WriteFpga(reg uint32, val []int) error + type FpgaUpdater struct + func (fu *FpgaUpdater) Deinit() error + func (fu *FpgaUpdater) DumpFlashAll(file *os.File, callback func(string, int, int)) error + func (fu *FpgaUpdater) DumpReverseFlashAll(file *os.File, callback func(string, int, int)) error + func (fu *FpgaUpdater) EraseBulk() error + func (fu *FpgaUpdater) EraseFlashAll() error + func (fu *FpgaUpdater) EraseSector(addr int) error + func (fu *FpgaUpdater) FastRead(addr int, length int) ([]int, error) + func (fu *FpgaUpdater) Init() error + func (fu *FpgaUpdater) IsPofValid(pof *os.File) error + func (fu *FpgaUpdater) ReadBytes(addr int, length int) ([]int, error) + func (fu *FpgaUpdater) ReadConfig() ([]int, error) + func (fu *FpgaUpdater) ReadFlashAll(callback func(string, int, int)) ([]int, error) + func (fu *FpgaUpdater) ReadStatus() ([]int, error) + func (fu *FpgaUpdater) SeekPofToData(pof *os.File) (dataOffset int, err error) + func (fu *FpgaUpdater) VerifyFlashAll(pof *os.File, callback func(string, int, int)) error + func (fu *FpgaUpdater) WriteBytes(addr int, data []int) error + func (fu *FpgaUpdater) WriteEnable() error + func (fu *FpgaUpdater) WriteFlashAll(pof *os.File, callback func(string, int, int)) error + type Gpio struct + type IrenePlatform struct + func (irene *IrenePlatform) Deinit(c *cli.Context) error + func (irene *IrenePlatform) GetEntry(c *cli.Context) error + func (irene *IrenePlatform) GetFan(c *cli.Context) error + func (irene *IrenePlatform) GetFpga(c *cli.Context) error + func (irene *IrenePlatform) GetInfo(c *cli.Context) error + func (irene *IrenePlatform) GetLed(c *cli.Context) error + func (irene *IrenePlatform) GetPsu(c *cli.Context) error + func (irene *IrenePlatform) GetSensor(c *cli.Context) error + func (irene *IrenePlatform) GetSfp(c *cli.Context) error + func (irene *IrenePlatform) GetSysEeprom(c *cli.Context) error + func (irene *IrenePlatform) GetThermal(c *cli.Context) error + func (irene *IrenePlatform) Init(c *cli.Context) error + func (irene *IrenePlatform) SetFan(c *cli.Context) error + func (irene *IrenePlatform) SetFpga(c *cli.Context) error + func (irene *IrenePlatform) SetLed(c *cli.Context) error + func (irene *IrenePlatform) SetSfp(c *cli.Context) error + func (irene *IrenePlatform) SetSysEeprom(c *cli.Context) error + func (irene *IrenePlatform) SyncSysEeprom(c *cli.Context) error + func (irene *IrenePlatform) Update(c *cli.Context) error + type SysEepromInfo struct + Manufacturer string + PartNumber string + ProductName string + ProductVersion string + SerialNumber string + func GetSysEepromInfo(path string) (SysEepromInfo, error)