Skip to content

Commit

Permalink
Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fish-sauce committed Oct 24, 2024
1 parent 456904f commit 8567537
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ios/diagnostics/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type Diagnostics struct {
IORegistry IORegistry
}

// IORegistry relates to the battery stats
type IORegistry struct {
InstantAmperage int
Temperature int
Expand Down
1 change: 1 addition & 0 deletions ios/dtx_codec/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (d *Channel) SendAndAwaitReply(expectsReply bool, messageType MessageType,
}
}

// Receive receives a message from a global channel (0)
func (d *Channel) Receive() (Message, error) {
select {
case response := <-d.messageReceiver.msgChannel:
Expand Down
2 changes: 2 additions & 0 deletions ios/instruments/instruments_sysmontap.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type SysmontapService struct {
plistCodec ios.PlistCodec
}

// Creates a new SysmontapService
func NewSysmontapService(device ios.DeviceEntry) (*SysmontapService, error) {
dtxConn, err := connectInstruments(device)
if err != nil {
Expand Down Expand Up @@ -53,6 +54,7 @@ func (s *SysmontapService) Start() (SysmontapMessage, error) {
return sysmontapMessage, nil
}

// SetConfig sets configuration to allow the sysmontap service getting desired data points
func (s *SysmontapService) SetConfig(procAttrs, sysAttrs []interface{}) error {
config := map[string]interface{}{
"ur": 500,
Expand Down

0 comments on commit 8567537

Please sign in to comment.