EasyManua.ls Logo

Acrosser Technology AR-V6002FL - Page 80

Default Icon
84 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Revision: 1.23
80
TRUE. If any error, the function returns FALSE.
8. Syntax:
BOOL PowerPic_GetBatteryVoltage( float *pVoltage )
Description: The function gets the voltage reading of the battery.
Parameters: The parameter ‘pVoltage’ is a pointer which points to an variable of type ‘float’.
The unit of the returned value is voltage.
Return Value: If the function gets the battery voltage successfully, this function will return
TRUE. If any error, the function returns FALSE.
9. Syntax:
BOOL PowerPic_GetFirmwareVersion( T_PIC_INFO *pPicInfo )
Description: The function gets version information of Power Subsystem firmware.
Parameters: The parameter is a pointer which points to a ‘T_PIC_INFO’ structure, which
consists of 9 BYTE. Here is the definition of structure ‘T_PIC_INFO’:
type struct {
typedef struct _T_PIC_INFO {
BYTE PicType[ 3 ];
BYTE PicModel[ 4 ];
BYTE PicMajorVersion;
BYTE PicMinorVersion;
} T_PIC_INFO;
Return Value: If the function gets the firmware version successfully, this function will return
TRUE. If any error, the function returns FALSE.
10. Syntax:
BOOL PowerPic_GetPicMode( BYTE* pMode )
Description: The function gets the mode number at which the Power Subsystem is operating..
Parameters: The parameter is a pointer which points to a variable of type ‘BYTE’. The
returned mode number is put at the memory which is pointed by parameter ‘pMode’.