Skip to content
Snippets Groups Projects
Commit fafc6ef2 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Function stubs done.

parent 15c01345
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -18,7 +18,22 @@ func New(c Config) (Counter, error) {
// Counter is an interface for Geiger Counters
type Counter interface {
GetReading() (*Reading, error)
Clear() error
Version() (string, error)
SerialNum() (string, error)
GetCPM() (uint16, error)
GetCPS() (uint16, error)
GetVoltage() (int16, error)
GetHistoryData()
TurnOnCPS() error
TurnOffCPS() error
GetAutoCPS() (uint16, error)
TurnOffPower()
GetConfiguration()
SetConfiguration()
ResetConfiguration()
SetDate(date string)
SetTime(time string)
}
// Config contain the configuration for a Geiger Counter
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment