Acrosser Technology AR-V6002FL User Manual page 80

Hide thumbs Also See for AR-V6002FL:
Table of Contents

Advertisement

10. Syntax:
i32 getBattVolt( float *volt )
Description: The function gets the voltage reading of the battery.
Parameters: The parameter 'volt' is a pointer which points to an variable of type 'float'.
The unit of the returned value is voltage.
Return Value: If the reading of voltage is returned successfully, the function returns 0. If
any error, it returns –1
11. Syntax:
i32 getPicFwVer( struct PicInfo *ver )
Description: The function gets version information of Power Subsystem firmware.
Parameters: The parameter is a pointer which points to a 'PicInfo' structure, which
consists of 9 unsigned characters. Here is the definition of structure 'PicInfo':
type struct {
u8 type[3];
u8 mode[4];
u8 majorVersion; // Major version number of the firmware
u8 minorVersion; // Minor version number of the firmware
} PicInfo;
PicInfo picInfo;
getPicFwVer( &picInfo );
printf("%c.%c\n", picInfo.majorVersion, picInfo.minorVersion );
Return Value: If the version information is returned successfully, the function returns 0.
If any error, it returns –1.
// The type of the power subsystem
// The mode at which the power subsystem is
operating.
80
Revision: 1.0

Advertisement

Table of Contents
loading

Table of Contents