resourcemgmt/hwresourcesmgr/power/inc/HWRMPower.h
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
    60 * power->GetBatteryInfo(status, batteryConsumptionData); 
    60 * power->GetBatteryInfo(status, batteryConsumptionData); 
    61 * 
    61 * 
    62 * User::WaitForRequest(status);
    62 * User::WaitForRequest(status);
    63 * User::LeaveIfError(status.Int());
    63 * User::LeaveIfError(status.Int());
    64 * 
    64 * 
    65 * // Start receiving periodical voltage measurements.
    65 * // Start receiving periodical power measurements.
       
    66 * //
       
    67 * // Note: There is a maximum reporting period defined for each product through the
       
    68 * //       CenRep Key KPowerMaxReportingPeriod defined in HWRMPowerDomainCRKeys.h.
       
    69 * //       The reporting will stop after this maximum reporting period by default.
       
    70 * //       The application can configure this dynamically.
       
    71 * //       Setting maximum report period to zero results in infinite notifications.
       
    72 * //
    66 * TRequestStatus& statusStart;
    73 * TRequestStatus& statusStart;
    67 * TIntervalMultiple intervalMultiple = EThreeTimesBaseTimeInterval;
    74 * TInt intervalMultiple = 3; // Three times the base time interval.
       
    75 * //
       
    76 * // Note: The base time interval is different for each product.
       
    77 * //       GetBaseTimeIntervalL API returns this value.
       
    78 * //
    68 * power->StartAverageVoltageReporting(statusStart, intervalMultiple);
    79 * power->StartAverageVoltageReporting(statusStart, intervalMultiple);
    69 *  
    80 *  
    70 * User::WaitForRequest(statusStart);
    81 * User::WaitForRequest(statusStart);
    71 * User::LeaveIfError(statusStart.Int());
    82 * User::LeaveIfError(statusStart.Int());
    72 * 
    83 *