// GetBatteryVoltage gets the battery voltage from the main battery pack (7v-12v).
770597
func (g *Driver) GetBatteryVoltage() (voltage float32, err error) {
	val, err := g.readUint16(goPiGo3Address, GET_VOLTAGE_VCC)
	return (float32(val) / 1000.0), err
}
770013
func (ev *changePrev) GetPrevValue(prevVal proto.Message) (exists bool, err error) {
	if ev.prev != nil {
		return true, ev.prev.GetValue(prevVal)
	}
	return false, nil
}
1225838
func (r *Ref) tryGetVal() interface{} {
	if r.tvals == nil {
		return nil
	}
	return r.tvals.val
}
483815
func (s *store) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (RWSetScanner, error) {

	logger.Debugf("Getting private data from transient store for transaction %s", txid)

	// Construct startKey and endKey to do an range query
	startKey := createTxidRangeStartKey(txid)
	endKey := createTxidRangeEndKey(txid)

	iter := s.db.GetIterator(startKey, endKey)
	return &RwsetScanner{txid, iter, filter}, nil
}
488367
func (i *INA3221Driver) GetLoadVoltage(channel INA3221Channel) (float64, error) {
	bv, err := i.GetBusVoltage(channel)
	if err != nil {
		return 0, err
	}

	sv, err := i.GetShuntVoltage(channel)
	if err != nil {
		return 0, err
	}

	return bv + (sv / 1000.0), nil
}
1111180
func (d *MCP4725) SetVoltage(voltage int) error {
	return d.setVoltage(voltage, dacReg)
}
582209
func (s *DescribeVTLDevicesInput) SetVTLDeviceARNs(v []*string) *DescribeVTLDevicesInput {
	s.VTLDeviceARNs = v
	return s
}
636052
func (m *BatteryStatus) Pack() []byte {
	data := new(bytes.Buffer)
	binary.Write(data, binary.LittleEndian, m.CURRENT_CONSUMED)
	binary.Write(data, binary.LittleEndian, m.ENERGY_CONSUMED)
	binary.Write(data, binary.LittleEndian, m.VOLTAGE_CELL_1)
	binary.Write(data, binary.LittleEndian, m.VOLTAGE_CELL_2)
	binary.Write(data, binary.LittleEndian, m.VOLTAGE_CELL_3)
	binary.Write(data, binary.LittleEndian, m.VOLTAGE_CELL_4)
	binary.Write(data, binary.LittleEndian, m.VOLTAGE_CELL_5)
	binary.Write(data, binary.LittleEndian, m.VOLTAGE_CELL_6)
	binary.Write(data, binary.LittleEndian, m.CURRENT_BATTERY)
	binary.Write(data, binary.LittleEndian, m.ACCU_ID)
	binary.Write(data, binary.LittleEndian, m.BATTERY_REMAINING)
	return data.Bytes()
}
296374
func (ev *ChangeResp) GetValue(val proto.Message) (err error) {
	return ev.CurrVal.GetValue(val)
}
1008392
func GetDevice(ordinal int) (device Device, err error) {
	Cordinal := C.int(ordinal)
	var Cdevice C.CUdevice
	err = result(C.cuDeviceGet(&Cdevice, Cordinal))
	device = Device(Cdevice)

	return
}
1109148
func (_m *DBClient) GetDeviceByName(n string) (models.Device, error) {
	ret := _m.Called(n)

	var r0 models.Device
	if rf, ok := ret.Get(0).(func(string) models.Device); ok {
		r0 = rf(n)
	} else {
		r0 = ret.Get(0).(models.Device)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(n)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
879166
func NewBatteryStatus(CURRENT_CONSUMED int32, ENERGY_CONSUMED int32, VOLTAGE_CELL_1 uint16, VOLTAGE_CELL_2 uint16, VOLTAGE_CELL_3 uint16, VOLTAGE_CELL_4 uint16, VOLTAGE_CELL_5 uint16, VOLTAGE_CELL_6 uint16, CURRENT_BATTERY int16, ACCU_ID uint8, BATTERY_REMAINING int8) *BatteryStatus {
	m := BatteryStatus{}
	m.CURRENT_CONSUMED = CURRENT_CONSUMED
	m.ENERGY_CONSUMED = ENERGY_CONSUMED
	m.VOLTAGE_CELL_1 = VOLTAGE_CELL_1
	m.VOLTAGE_CELL_2 = VOLTAGE_CELL_2
	m.VOLTAGE_CELL_3 = VOLTAGE_CELL_3
	m.VOLTAGE_CELL_4 = VOLTAGE_CELL_4
	m.VOLTAGE_CELL_5 = VOLTAGE_CELL_5
	m.VOLTAGE_CELL_6 = VOLTAGE_CELL_6
	m.CURRENT_BATTERY = CURRENT_BATTERY
	m.ACCU_ID = ACCU_ID
	m.BATTERY_REMAINING = BATTERY_REMAINING
	return &m
}
168477
func (s *Server) GetVolumeStatus(empty struct{}, reply *volume.Statuses) error {
	response := volume.GetStatus()
	if response == nil {
		return errors.New("volume_server.go GetStatus failed")
	}
	*reply = *response
	return nil
}
714555
func (ev *ChangeResp) GetPrevValue(prevVal proto.Message) (prevExists bool, err error) {
	if prevVal != nil && ev.PrevVal != nil {
		return true, ev.PrevVal.GetValue(prevVal)
	}
	return false, err
}
374044
func (l *kvLedger) GetMissingPvtDataInfoForMostRecentBlocks(maxBlock int) (ledger.MissingPvtDataInfo, error) {
	return l.blockStore.GetMissingPvtDataInfoForMostRecentBlocks(maxBlock)
}
583650
func (_m *Light) GetPower() (bool, error) {
	ret := _m.Called()

	var r0 bool
	if rf, ok := ret.Get(0).(func() bool); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(bool)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
109572
func (s *Store) GetLastUpdatedOldBlocksPvtData() (map[uint64][]*ledger.TxPvtData, error) {
	return s.pvtdataStore.GetLastUpdatedOldBlocksPvtData()
}