Documentation ¶
Overview ¶
Package stm implements communication with STM32F030 found on MuxPi.
Index ¶
- func RegisterInterfaceService(server *rpc.Server, impl Interface) error
- func RegisterUserInterfaceService(server *rpc.Server, impl UserInterface) error
- type AdminInterface
- type Color
- type Dummy
- func (d *Dummy) ClearDisplay() error
- func (d *Dummy) Close() error
- func (d *Dummy) DUT() error
- func (d *Dummy) GetCurrent() (int, error)
- func (d *Dummy) GetCurrentRecord() ([]int, error)
- func (d *Dummy) HDMI(on bool) (err error)
- func (d *Dummy) PowerTick(duration time.Duration) error
- func (d *Dummy) PrintText(x, y uint, color Color, text string) error
- func (d *Dummy) SetDyper(dyper Dyper, on bool) error
- func (d *Dummy) SetLED(led LED, r, g, b uint8) error
- func (d *Dummy) StartCurrentRecord(samples int, interval time.Duration) error
- func (d *Dummy) StopCurrentRecord() error
- func (d *Dummy) TS() error
- type Dyper
- type Interface
- type InterfaceClearDisplayRequest
- type InterfaceClearDisplayResponse
- type InterfaceClient
- func (_c *InterfaceClient) ClearDisplay() (err error)
- func (_c *InterfaceClient) Close() error
- func (_c *InterfaceClient) DUT() (err error)
- func (_c *InterfaceClient) GetCurrent() (value int, err error)
- func (_c *InterfaceClient) GetCurrentRecord() (samples []int, err error)
- func (_c *InterfaceClient) HDMI(on bool) (err error)
- func (_c *InterfaceClient) PowerTick(d time.Duration) (err error)
- func (_c *InterfaceClient) PrintText(x, y uint, color Color, text string) (err error)
- func (_c *InterfaceClient) SetDyper(dyper Dyper, on bool) (err error)
- func (_c *InterfaceClient) SetLED(led LED, r, g, b uint8) (err error)
- func (_c *InterfaceClient) StartCurrentRecord(samples int, interval time.Duration) (err error)
- func (_c *InterfaceClient) StopCurrentRecord() (err error)
- func (_c *InterfaceClient) TS() (err error)
- type InterfaceCloser
- type InterfaceDUTRequest
- type InterfaceDUTResponse
- type InterfaceGetCurrentRecordRequest
- type InterfaceGetCurrentRecordResponse
- type InterfaceGetCurrentRequest
- type InterfaceGetCurrentResponse
- type InterfaceHDMIRequest
- type InterfaceHDMIResponse
- type InterfacePowerTickRequest
- type InterfacePowerTickResponse
- type InterfacePrintTextRequest
- type InterfacePrintTextResponse
- type InterfaceService
- func (s *InterfaceService) ClearDisplay(request *InterfaceClearDisplayRequest, response *InterfaceClearDisplayResponse) (err error)
- func (s *InterfaceService) DUT(request *InterfaceDUTRequest, response *InterfaceDUTResponse) (err error)
- func (s *InterfaceService) GetCurrent(request *InterfaceGetCurrentRequest, response *InterfaceGetCurrentResponse) (err error)
- func (s *InterfaceService) GetCurrentRecord(request *InterfaceGetCurrentRecordRequest, ...) (err error)
- func (s *InterfaceService) HDMI(request *InterfaceHDMIRequest, response *InterfaceHDMIResponse) (err error)
- func (s *InterfaceService) PowerTick(request *InterfacePowerTickRequest, response *InterfacePowerTickResponse) (err error)
- func (s *InterfaceService) PrintText(request *InterfacePrintTextRequest, response *InterfacePrintTextResponse) (err error)
- func (s *InterfaceService) SetDyper(request *InterfaceSetDyperRequest, response *InterfaceSetDyperResponse) (err error)
- func (s *InterfaceService) SetLED(request *InterfaceSetLEDRequest, response *InterfaceSetLEDResponse) (err error)
- func (s *InterfaceService) StartCurrentRecord(request *InterfaceStartCurrentRecordRequest, ...) (err error)
- func (s *InterfaceService) StopCurrentRecord(request *InterfaceStopCurrentRecordRequest, ...) (err error)
- func (s *InterfaceService) TS(request *InterfaceTSRequest, response *InterfaceTSResponse) (err error)
- type InterfaceSetDyperRequest
- type InterfaceSetDyperResponse
- type InterfaceSetLEDRequest
- type InterfaceSetLEDResponse
- type InterfaceStartCurrentRecordRequest
- type InterfaceStartCurrentRecordResponse
- type InterfaceStopCurrentRecordRequest
- type InterfaceStopCurrentRecordResponse
- type InterfaceTSRequest
- type InterfaceTSResponse
- type LED
- type STM
- func (stm *STM) ClearDisplay() error
- func (stm *STM) Close() error
- func (stm *STM) DUT() error
- func (stm *STM) GetCurrent() (int, error)
- func (stm *STM) GetCurrentRecord() (samples []int, err error)
- func (stm *STM) HDMI(on bool) (err error)
- func (stm *STM) Open() (err error)
- func (stm *STM) PowerTick(d time.Duration) error
- func (stm *STM) PrintText(x, y uint, color Color, text string) error
- func (stm *STM) SetDyper(dyper Dyper, on bool) (err error)
- func (stm *STM) SetLED(led LED, r, g, b uint8) error
- func (stm *STM) StartCurrentRecord(samples int, interval time.Duration) (err error)
- func (stm *STM) StopCurrentRecord() (err error)
- func (stm *STM) TS() error
- type UserInterface
- type UserInterfaceClient
- func (_c *UserInterfaceClient) Close() error
- func (_c *UserInterfaceClient) DUT() (err error)
- func (_c *UserInterfaceClient) GetCurrent() (value int, err error)
- func (_c *UserInterfaceClient) GetCurrentRecord() (samples []int, err error)
- func (_c *UserInterfaceClient) HDMI(on bool) (err error)
- func (_c *UserInterfaceClient) PowerTick(d time.Duration) (err error)
- func (_c *UserInterfaceClient) SetDyper(dyper Dyper, on bool) (err error)
- func (_c *UserInterfaceClient) StartCurrentRecord(samples int, interval time.Duration) (err error)
- func (_c *UserInterfaceClient) StopCurrentRecord() (err error)
- func (_c *UserInterfaceClient) TS() (err error)
- type UserInterfaceDUTRequest
- type UserInterfaceDUTResponse
- type UserInterfaceGetCurrentRecordRequest
- type UserInterfaceGetCurrentRecordResponse
- type UserInterfaceGetCurrentRequest
- type UserInterfaceGetCurrentResponse
- type UserInterfaceHDMIRequest
- type UserInterfaceHDMIResponse
- type UserInterfacePowerTickRequest
- type UserInterfacePowerTickResponse
- type UserInterfaceService
- func (s *UserInterfaceService) DUT(request *UserInterfaceDUTRequest, response *UserInterfaceDUTResponse) (err error)
- func (s *UserInterfaceService) GetCurrent(request *UserInterfaceGetCurrentRequest, ...) (err error)
- func (s *UserInterfaceService) GetCurrentRecord(request *UserInterfaceGetCurrentRecordRequest, ...) (err error)
- func (s *UserInterfaceService) HDMI(request *UserInterfaceHDMIRequest, response *UserInterfaceHDMIResponse) (err error)
- func (s *UserInterfaceService) PowerTick(request *UserInterfacePowerTickRequest, ...) (err error)
- func (s *UserInterfaceService) SetDyper(request *UserInterfaceSetDyperRequest, response *UserInterfaceSetDyperResponse) (err error)
- func (s *UserInterfaceService) StartCurrentRecord(request *UserInterfaceStartCurrentRecordRequest, ...) (err error)
- func (s *UserInterfaceService) StopCurrentRecord(request *UserInterfaceStopCurrentRecordRequest, ...) (err error)
- func (s *UserInterfaceService) TS(request *UserInterfaceTSRequest, response *UserInterfaceTSResponse) (err error)
- type UserInterfaceSetDyperRequest
- type UserInterfaceSetDyperResponse
- type UserInterfaceStartCurrentRecordRequest
- type UserInterfaceStartCurrentRecordResponse
- type UserInterfaceStopCurrentRecordRequest
- type UserInterfaceStopCurrentRecordResponse
- type UserInterfaceTSRequest
- type UserInterfaceTSResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterInterfaceService ¶
RegisterInterfaceService registers impl in server.
func RegisterUserInterfaceService ¶
func RegisterUserInterfaceService(server *rpc.Server, impl UserInterface) error
RegisterUserInterfaceService registers impl in server.
Types ¶
type AdminInterface ¶
type AdminInterface interface { SetLED(led LED, r, g, b uint8) (err error) ClearDisplay() (err error) PrintText(x, y uint, color Color, text string) (err error) }
AdminInterface contains methods of STM that are intended to be used by administrators only.
type Color ¶
type Color string
Color denotes a string representation of a color accepted by STM.
MuxPi has only two colors available: orange (foreground), black (background).
type Dummy ¶
type Dummy struct {
// contains filtered or unexported fields
}
Dummy is a dummy implementation of Interface. It logs to the standard logger from "log" package.
func (*Dummy) ClearDisplay ¶
ClearDisplay prints "ClearDisplay" to the standard logger.
func (*Dummy) GetCurrent ¶
GetCurrent prints "GetCurrent" to the standard logger and returns 0.
func (*Dummy) GetCurrentRecord ¶
GetCurrentRecord prints "GetCurrentRecord" to the standard logger and returns nil.
func (*Dummy) PowerTick ¶
PowerTick prints "PowerTick" and duration argument to the standard logger.
func (*Dummy) StartCurrentRecord ¶
StartCurrentRecord prints "StartCurrentRecord" and arguments to the standard logger.
func (*Dummy) StopCurrentRecord ¶
StopCurrentRecord prints "StopCurrentRecord" to the standard logger.
type Interface ¶
type Interface interface { UserInterface AdminInterface }
Interface contains all methods of STM.
type InterfaceClearDisplayRequest ¶
type InterfaceClearDisplayRequest struct { }
InterfaceClearDisplayRequest is a helper structure for ClearDisplay method.
type InterfaceClearDisplayResponse ¶
type InterfaceClearDisplayResponse struct { }
InterfaceClearDisplayResponse is a helper structure for ClearDisplay method.
type InterfaceClient ¶
type InterfaceClient struct {
// contains filtered or unexported fields
}
InterfaceClient is generated client for Interface interface.
func DialInterfaceClient ¶
func DialInterfaceClient(addr string) (*InterfaceClient, error)
DialInterfaceClient connects to addr and creates a new InterfaceClient instance.
func NewInterfaceClient ¶
func NewInterfaceClient(client *rpc.Client) *InterfaceClient
NewInterfaceClient creates a new InterfaceClient instance.
func (*InterfaceClient) ClearDisplay ¶
func (_c *InterfaceClient) ClearDisplay() (err error)
ClearDisplay is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) Close ¶
func (_c *InterfaceClient) Close() error
Close terminates the connection.
func (*InterfaceClient) DUT ¶
func (_c *InterfaceClient) DUT() (err error)
DUT is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) GetCurrent ¶
func (_c *InterfaceClient) GetCurrent() (value int, err error)
GetCurrent is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) GetCurrentRecord ¶
func (_c *InterfaceClient) GetCurrentRecord() (samples []int, err error)
GetCurrentRecord is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) HDMI ¶
func (_c *InterfaceClient) HDMI(on bool) (err error)
HDMI is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) PowerTick ¶
func (_c *InterfaceClient) PowerTick(d time.Duration) (err error)
PowerTick is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) PrintText ¶
func (_c *InterfaceClient) PrintText(x, y uint, color Color, text string) (err error)
PrintText is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) SetDyper ¶
func (_c *InterfaceClient) SetDyper(dyper Dyper, on bool) (err error)
SetDyper is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) SetLED ¶
func (_c *InterfaceClient) SetLED(led LED, r, g, b uint8) (err error)
SetLED is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) StartCurrentRecord ¶
func (_c *InterfaceClient) StartCurrentRecord(samples int, interval time.Duration) (err error)
StartCurrentRecord is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) StopCurrentRecord ¶
func (_c *InterfaceClient) StopCurrentRecord() (err error)
StopCurrentRecord is part of implementation of Interface calling corresponding method on RPC server.
func (*InterfaceClient) TS ¶
func (_c *InterfaceClient) TS() (err error)
TS is part of implementation of Interface calling corresponding method on RPC server.
type InterfaceCloser ¶
InterfaceCloser is Interface expanded by Close method.
func GetDefaultSTM ¶
func GetDefaultSTM() (InterfaceCloser, error)
GetDefaultSTM provides InterfaceCloser to STM with default values. The caller should call Close() to free the underlying serial connection. The returned instance is different for each call. Care should be taken to not use two such objects concurrently as they use the same device.
func NewDummy ¶
func NewDummy(context string) InterfaceCloser
NewDummy return a dummy implementation of Interface. Each message will be prefixed with context.
type InterfaceDUTRequest ¶
type InterfaceDUTRequest struct { }
InterfaceDUTRequest is a helper structure for DUT method.
type InterfaceDUTResponse ¶
type InterfaceDUTResponse struct { }
InterfaceDUTResponse is a helper structure for DUT method.
type InterfaceGetCurrentRecordRequest ¶
type InterfaceGetCurrentRecordRequest struct { }
InterfaceGetCurrentRecordRequest is a helper structure for GetCurrentRecord method.
type InterfaceGetCurrentRecordResponse ¶
type InterfaceGetCurrentRecordResponse struct {
Samples []int
}
InterfaceGetCurrentRecordResponse is a helper structure for GetCurrentRecord method.
type InterfaceGetCurrentRequest ¶
type InterfaceGetCurrentRequest struct { }
InterfaceGetCurrentRequest is a helper structure for GetCurrent method.
type InterfaceGetCurrentResponse ¶
type InterfaceGetCurrentResponse struct {
Value int
}
InterfaceGetCurrentResponse is a helper structure for GetCurrent method.
type InterfaceHDMIRequest ¶
type InterfaceHDMIRequest struct {
On bool
}
InterfaceHDMIRequest is a helper structure for HDMI method.
type InterfaceHDMIResponse ¶
type InterfaceHDMIResponse struct { }
InterfaceHDMIResponse is a helper structure for HDMI method.
type InterfacePowerTickRequest ¶
InterfacePowerTickRequest is a helper structure for PowerTick method.
type InterfacePowerTickResponse ¶
type InterfacePowerTickResponse struct { }
InterfacePowerTickResponse is a helper structure for PowerTick method.
type InterfacePrintTextRequest ¶
InterfacePrintTextRequest is a helper structure for PrintText method.
type InterfacePrintTextResponse ¶
type InterfacePrintTextResponse struct { }
InterfacePrintTextResponse is a helper structure for PrintText method.
type InterfaceService ¶
type InterfaceService struct {
// contains filtered or unexported fields
}
InterfaceService is generated service for Interface interface.
func NewInterfaceService ¶
func NewInterfaceService(impl Interface) *InterfaceService
NewInterfaceService creates a new InterfaceService instance.
func (*InterfaceService) ClearDisplay ¶
func (s *InterfaceService) ClearDisplay(request *InterfaceClearDisplayRequest, response *InterfaceClearDisplayResponse) (err error)
ClearDisplay is RPC implementation of ClearDisplay calling it.
func (*InterfaceService) DUT ¶
func (s *InterfaceService) DUT(request *InterfaceDUTRequest, response *InterfaceDUTResponse) (err error)
DUT is RPC implementation of DUT calling it.
func (*InterfaceService) GetCurrent ¶
func (s *InterfaceService) GetCurrent(request *InterfaceGetCurrentRequest, response *InterfaceGetCurrentResponse) (err error)
GetCurrent is RPC implementation of GetCurrent calling it.
func (*InterfaceService) GetCurrentRecord ¶
func (s *InterfaceService) GetCurrentRecord(request *InterfaceGetCurrentRecordRequest, response *InterfaceGetCurrentRecordResponse) (err error)
GetCurrentRecord is RPC implementation of GetCurrentRecord calling it.
func (*InterfaceService) HDMI ¶
func (s *InterfaceService) HDMI(request *InterfaceHDMIRequest, response *InterfaceHDMIResponse) (err error)
HDMI is RPC implementation of HDMI calling it.
func (*InterfaceService) PowerTick ¶
func (s *InterfaceService) PowerTick(request *InterfacePowerTickRequest, response *InterfacePowerTickResponse) (err error)
PowerTick is RPC implementation of PowerTick calling it.
func (*InterfaceService) PrintText ¶
func (s *InterfaceService) PrintText(request *InterfacePrintTextRequest, response *InterfacePrintTextResponse) (err error)
PrintText is RPC implementation of PrintText calling it.
func (*InterfaceService) SetDyper ¶
func (s *InterfaceService) SetDyper(request *InterfaceSetDyperRequest, response *InterfaceSetDyperResponse) (err error)
SetDyper is RPC implementation of SetDyper calling it.
func (*InterfaceService) SetLED ¶
func (s *InterfaceService) SetLED(request *InterfaceSetLEDRequest, response *InterfaceSetLEDResponse) (err error)
SetLED is RPC implementation of SetLED calling it.
func (*InterfaceService) StartCurrentRecord ¶
func (s *InterfaceService) StartCurrentRecord(request *InterfaceStartCurrentRecordRequest, response *InterfaceStartCurrentRecordResponse) (err error)
StartCurrentRecord is RPC implementation of StartCurrentRecord calling it.
func (*InterfaceService) StopCurrentRecord ¶
func (s *InterfaceService) StopCurrentRecord(request *InterfaceStopCurrentRecordRequest, response *InterfaceStopCurrentRecordResponse) (err error)
StopCurrentRecord is RPC implementation of StopCurrentRecord calling it.
func (*InterfaceService) TS ¶
func (s *InterfaceService) TS(request *InterfaceTSRequest, response *InterfaceTSResponse) (err error)
TS is RPC implementation of TS calling it.
type InterfaceSetDyperRequest ¶
InterfaceSetDyperRequest is a helper structure for SetDyper method.
type InterfaceSetDyperResponse ¶
type InterfaceSetDyperResponse struct { }
InterfaceSetDyperResponse is a helper structure for SetDyper method.
type InterfaceSetLEDRequest ¶
InterfaceSetLEDRequest is a helper structure for SetLED method.
type InterfaceSetLEDResponse ¶
type InterfaceSetLEDResponse struct { }
InterfaceSetLEDResponse is a helper structure for SetLED method.
type InterfaceStartCurrentRecordRequest ¶
InterfaceStartCurrentRecordRequest is a helper structure for StartCurrentRecord method.
type InterfaceStartCurrentRecordResponse ¶
type InterfaceStartCurrentRecordResponse struct { }
InterfaceStartCurrentRecordResponse is a helper structure for StartCurrentRecord method.
type InterfaceStopCurrentRecordRequest ¶
type InterfaceStopCurrentRecordRequest struct { }
InterfaceStopCurrentRecordRequest is a helper structure for StopCurrentRecord method.
type InterfaceStopCurrentRecordResponse ¶
type InterfaceStopCurrentRecordResponse struct { }
InterfaceStopCurrentRecordResponse is a helper structure for StopCurrentRecord method.
type InterfaceTSRequest ¶
type InterfaceTSRequest struct { }
InterfaceTSRequest is a helper structure for TS method.
type InterfaceTSResponse ¶
type InterfaceTSResponse struct { }
InterfaceTSResponse is a helper structure for TS method.
type STM ¶
type STM struct {
// contains filtered or unexported fields
}
STM provides methods to execute commands via serial interface.
It is safe for concurrent use.
func (*STM) ClearDisplay ¶
ClearDisplay clears the OLED display.
func (*STM) Close ¶
Close terminates the serial connection.
It should be called only once after the connection has been created with Open().
func (*STM) GetCurrent ¶
GetCurrent reads value of current drawn by DUT. The value is in milliamperes [mA].
func (*STM) GetCurrentRecord ¶
GetCurrentRecord returns all samples of GetCurrent made. It may be called before StopCurrentRecord.
func (*STM) Open ¶
Open starts a serial connection.
It should be called only once after structure creation or in case the connection has been terminated with Close().
func (*STM) PowerTick ¶
PowerTick cuts power off DUT, waits specified time and switches power back on.
func (*STM) SetDyper ¶
SetDyper switches dyper, specified by 1st argument, on or off depending on 2nd argument.
func (*STM) StartCurrentRecord ¶
StartCurrentRecord starts a goroutine that periodically calls GetCurrent and saves the returned value. User who wants more samples should periodically call GetCurrent() instead.
func (*STM) StopCurrentRecord ¶
StopCurrentRecord stops the goroutine that records the sample.
type UserInterface ¶
type UserInterface interface { PowerTick(d time.Duration) (err error) DUT() (err error) TS() (err error) GetCurrent() (value int, err error) StartCurrentRecord(samples int, interval time.Duration) (err error) StopCurrentRecord() (err error) GetCurrentRecord() (samples []int, err error) HDMI(on bool) (err error) SetDyper(dyper Dyper, on bool) (err error) }
UserInterface contains methods of STM that are intended to be used by a regular user and admin.
type UserInterfaceClient ¶
type UserInterfaceClient struct {
// contains filtered or unexported fields
}
UserInterfaceClient is generated client for UserInterface interface.
func DialUserInterfaceClient ¶
func DialUserInterfaceClient(addr string) (*UserInterfaceClient, error)
DialUserInterfaceClient connects to addr and creates a new UserInterfaceClient instance.
func NewUserInterfaceClient ¶
func NewUserInterfaceClient(client *rpc.Client) *UserInterfaceClient
NewUserInterfaceClient creates a new UserInterfaceClient instance.
func (*UserInterfaceClient) Close ¶
func (_c *UserInterfaceClient) Close() error
Close terminates the connection.
func (*UserInterfaceClient) DUT ¶
func (_c *UserInterfaceClient) DUT() (err error)
DUT is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) GetCurrent ¶
func (_c *UserInterfaceClient) GetCurrent() (value int, err error)
GetCurrent is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) GetCurrentRecord ¶
func (_c *UserInterfaceClient) GetCurrentRecord() (samples []int, err error)
GetCurrentRecord is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) HDMI ¶
func (_c *UserInterfaceClient) HDMI(on bool) (err error)
HDMI is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) PowerTick ¶
func (_c *UserInterfaceClient) PowerTick(d time.Duration) (err error)
PowerTick is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) SetDyper ¶
func (_c *UserInterfaceClient) SetDyper(dyper Dyper, on bool) (err error)
SetDyper is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) StartCurrentRecord ¶
func (_c *UserInterfaceClient) StartCurrentRecord(samples int, interval time.Duration) (err error)
StartCurrentRecord is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) StopCurrentRecord ¶
func (_c *UserInterfaceClient) StopCurrentRecord() (err error)
StopCurrentRecord is part of implementation of UserInterface calling corresponding method on RPC server.
func (*UserInterfaceClient) TS ¶
func (_c *UserInterfaceClient) TS() (err error)
TS is part of implementation of UserInterface calling corresponding method on RPC server.
type UserInterfaceDUTRequest ¶
type UserInterfaceDUTRequest struct { }
UserInterfaceDUTRequest is a helper structure for DUT method.
type UserInterfaceDUTResponse ¶
type UserInterfaceDUTResponse struct { }
UserInterfaceDUTResponse is a helper structure for DUT method.
type UserInterfaceGetCurrentRecordRequest ¶
type UserInterfaceGetCurrentRecordRequest struct { }
UserInterfaceGetCurrentRecordRequest is a helper structure for GetCurrentRecord method.
type UserInterfaceGetCurrentRecordResponse ¶
type UserInterfaceGetCurrentRecordResponse struct {
Samples []int
}
UserInterfaceGetCurrentRecordResponse is a helper structure for GetCurrentRecord method.
type UserInterfaceGetCurrentRequest ¶
type UserInterfaceGetCurrentRequest struct { }
UserInterfaceGetCurrentRequest is a helper structure for GetCurrent method.
type UserInterfaceGetCurrentResponse ¶
type UserInterfaceGetCurrentResponse struct {
Value int
}
UserInterfaceGetCurrentResponse is a helper structure for GetCurrent method.
type UserInterfaceHDMIRequest ¶
type UserInterfaceHDMIRequest struct {
On bool
}
UserInterfaceHDMIRequest is a helper structure for HDMI method.
type UserInterfaceHDMIResponse ¶
type UserInterfaceHDMIResponse struct { }
UserInterfaceHDMIResponse is a helper structure for HDMI method.
type UserInterfacePowerTickRequest ¶
UserInterfacePowerTickRequest is a helper structure for PowerTick method.
type UserInterfacePowerTickResponse ¶
type UserInterfacePowerTickResponse struct { }
UserInterfacePowerTickResponse is a helper structure for PowerTick method.
type UserInterfaceService ¶
type UserInterfaceService struct {
// contains filtered or unexported fields
}
UserInterfaceService is generated service for UserInterface interface.
func NewUserInterfaceService ¶
func NewUserInterfaceService(impl UserInterface) *UserInterfaceService
NewUserInterfaceService creates a new UserInterfaceService instance.
func (*UserInterfaceService) DUT ¶
func (s *UserInterfaceService) DUT(request *UserInterfaceDUTRequest, response *UserInterfaceDUTResponse) (err error)
DUT is RPC implementation of DUT calling it.
func (*UserInterfaceService) GetCurrent ¶
func (s *UserInterfaceService) GetCurrent(request *UserInterfaceGetCurrentRequest, response *UserInterfaceGetCurrentResponse) (err error)
GetCurrent is RPC implementation of GetCurrent calling it.
func (*UserInterfaceService) GetCurrentRecord ¶
func (s *UserInterfaceService) GetCurrentRecord(request *UserInterfaceGetCurrentRecordRequest, response *UserInterfaceGetCurrentRecordResponse) (err error)
GetCurrentRecord is RPC implementation of GetCurrentRecord calling it.
func (*UserInterfaceService) HDMI ¶
func (s *UserInterfaceService) HDMI(request *UserInterfaceHDMIRequest, response *UserInterfaceHDMIResponse) (err error)
HDMI is RPC implementation of HDMI calling it.
func (*UserInterfaceService) PowerTick ¶
func (s *UserInterfaceService) PowerTick(request *UserInterfacePowerTickRequest, response *UserInterfacePowerTickResponse) (err error)
PowerTick is RPC implementation of PowerTick calling it.
func (*UserInterfaceService) SetDyper ¶
func (s *UserInterfaceService) SetDyper(request *UserInterfaceSetDyperRequest, response *UserInterfaceSetDyperResponse) (err error)
SetDyper is RPC implementation of SetDyper calling it.
func (*UserInterfaceService) StartCurrentRecord ¶
func (s *UserInterfaceService) StartCurrentRecord(request *UserInterfaceStartCurrentRecordRequest, response *UserInterfaceStartCurrentRecordResponse) (err error)
StartCurrentRecord is RPC implementation of StartCurrentRecord calling it.
func (*UserInterfaceService) StopCurrentRecord ¶
func (s *UserInterfaceService) StopCurrentRecord(request *UserInterfaceStopCurrentRecordRequest, response *UserInterfaceStopCurrentRecordResponse) (err error)
StopCurrentRecord is RPC implementation of StopCurrentRecord calling it.
func (*UserInterfaceService) TS ¶
func (s *UserInterfaceService) TS(request *UserInterfaceTSRequest, response *UserInterfaceTSResponse) (err error)
TS is RPC implementation of TS calling it.
type UserInterfaceSetDyperRequest ¶
UserInterfaceSetDyperRequest is a helper structure for SetDyper method.
type UserInterfaceSetDyperResponse ¶
type UserInterfaceSetDyperResponse struct { }
UserInterfaceSetDyperResponse is a helper structure for SetDyper method.
type UserInterfaceStartCurrentRecordRequest ¶
UserInterfaceStartCurrentRecordRequest is a helper structure for StartCurrentRecord method.
type UserInterfaceStartCurrentRecordResponse ¶
type UserInterfaceStartCurrentRecordResponse struct { }
UserInterfaceStartCurrentRecordResponse is a helper structure for StartCurrentRecord method.
type UserInterfaceStopCurrentRecordRequest ¶
type UserInterfaceStopCurrentRecordRequest struct { }
UserInterfaceStopCurrentRecordRequest is a helper structure for StopCurrentRecord method.
type UserInterfaceStopCurrentRecordResponse ¶
type UserInterfaceStopCurrentRecordResponse struct { }
UserInterfaceStopCurrentRecordResponse is a helper structure for StopCurrentRecord method.
type UserInterfaceTSRequest ¶
type UserInterfaceTSRequest struct { }
UserInterfaceTSRequest is a helper structure for TS method.
type UserInterfaceTSResponse ¶
type UserInterfaceTSResponse struct { }
UserInterfaceTSResponse is a helper structure for TS method.