Documentation ¶
Index ¶
- Constants
- type CMS50
- func (c *CMS50) Connect(port string) error
- func (c *CMS50) GetModel() (string, error)
- func (c *CMS50) GetSessionCount() (uint8, error)
- func (c *CMS50) GetSessionData(session uint8) ([]*model.OxiRecord, error)
- func (c *CMS50) GetSessionDuration(session uint8) (time.Duration, error)
- func (c *CMS50) GetSessionTime(session uint8) (time.Time, error)
- func (c *CMS50) GetUser() (string, error)
- func (c *CMS50) ResetDevice() error
- type Device
Constants ¶
View Source
const ( CommandHello1 = 0xa7 CommandHello2 = 0xa2 CommandGetSessionCount = 0xa3 CommandGetSessionTime = 0xa5 CommandGetSessionDuration = 0xa4 CommandGetUserInfo = 0xab CommandGetSessionData = 0xa6 CommandGetOximeterDeviceid = 0xaa CommandGetOximeterInfo = 0xb0 CommandGetOximeterModel = 0xa8 CommandGetOximeterVendor = 0xa9 CommandSessionErase = 0xae DurationDivisor = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMS50 ¶
type CMS50 struct {
// contains filtered or unexported fields
}
func (*CMS50) GetSessionCount ¶
func (*CMS50) GetSessionData ¶
func (*CMS50) GetSessionDuration ¶
func (*CMS50) ResetDevice ¶
type Device ¶
type Device interface { Connect(port string) error ResetDevice() error GetModel() (string, error) GetSessionCount() (uint8, error) GetSessionDuration(session uint8) (time.Duration, error) GetSessionTime(session uint8) (time.Time, error) GetSessionData(session uint8) ([]*model.OxiRecord, error) GetUser() (string, error) }
Click to show internal directories.
Click to hide internal directories.