|
|
Line 19: |
Line 19: |
| | | |
| | | |
- | Name : Init
| + | [[Category:AllowPages]] |
- | Description : Initial super cap device
| + | |
- | Arguments : None
| + | |
- | Return : TRUE : Success , FALSE : Failed
| + | |
- | | + | |
- | int Init();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : Free
| + | |
- | // Description : Free super cap device
| + | |
- | // Arguments : None
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int Free();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapTimestampSec
| + | |
- | // Description : Get time stamp of super cap information. Unit is second
| + | |
- | // Arguments :
| + | |
- | // llTimestampSec [out] : Time stamp
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapTimestampSec(long long llTimestampSec);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : CheckDeviceExist
| + | |
- | // Description : Check Super cap device exist or not.
| + | |
- | // Arguments : None
| + | |
- | // Return :
| + | |
- | // TRUE : Super cap device exist
| + | |
- | // FALSE : Super cap device does not exist
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int CheckDeviceExist();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapChargeStatusInfo
| + | |
- | // Description : Get charge status bits of super cap information
| + | |
- | // Arguments :
| + | |
- | // nBits [out] : Bits of super cap charge status
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapChargeStatusInfo(int *nBits);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapPowerStatusInfo
| + | |
- | // Description : Get power status of super cap information
| + | |
- | // Arguments :
| + | |
- | // nBits [out] : Bits of super cap power status
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapPowerStatusInfo(int *nBits);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapVoltageInfo
| + | |
- | // Description : Get voltage of super cap information
| + | |
- | // Arguments :
| + | |
- | // fVoltage [out] : Voltage (Unit: V)
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapVoltageInfo(float *fVoltage);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapOutputVoltageInfo
| + | |
- | // Description : Get output voltage of super cap information
| + | |
- | // Arguments :
| + | |
- | // fVoltage [out] : Output voltage (Unit: V)
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapOutputVoltageInfo(float *fVoltage);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetName
| + | |
- | // Description : Get device title name
| + | |
- | // Arguments :
| + | |
- | // tcName [out] : Device title name
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetName();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetFirmwareVer
| + | |
- | // Description : Get device firmware version
| + | |
- | // Arguments :
| + | |
- | // tcFwVer [out] : Device firmware version
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetFirmwareVer();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapCapacityInfo
| + | |
- | // Description : Get left capacity of super cap information
| + | |
- | // Arguments :
| + | |
- | // fCapacity [out] : Left capacity (Unit: %)
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapCapacityInfo(float *fCapacity);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapacitorsNum
| + | |
- | // Description : Get number of capacitors on board
| + | |
- | // Arguments :
| + | |
- | // nNum [out] : Number of capacitors
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapacitorsNum(int *nNum);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : SetMaxCapacitySize
| + | |
- | // Description : Set max size capacity value of capacitors.
| + | |
- | // Arguments :
| + | |
- | // fMaxSize [in] : Max size capacity value
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int SetMaxCapacitySize(float fMaxSize);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetDesignCapInfo
| + | |
- | // Description : Get design capacity of capacitors
| + | |
- | // Arguments :
| + | |
- | // fCapacity [out] : Capacity design capacity
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetDesignCapInfo(float fCapacity);
| + | |
PW601 can help you get battery information.
In case of machine failure, it can provide emergency time for you to backup data.