Trek TREK-725 Benutzerhandbuch

Seite von 100
71
Chapter 4  
4.9.6 Get MAC Address API
If you want to know the MAC address of the on-board network card you 
can call AdvLibGetMacAddr() to get it.
AdvLibGetMacAddr
Call this function to get the on-board network card MAC address.
* BOOL AdvLibGetMacAddr(char* tmpStr)
+ Parameters
  - tmpStr
    [out] On-board network card MAC id.
+ Return Value
  - TRUE (nonzero) on success.
    FALSE (zero) on failure.
+ Remarks
None.
4.9.7 Adjust Brightness
There are three functions to control LCD panel brightness. If you want to 
get the current LCD panel brightness value, you can call AdvLibBright-
Get(). It will return a value form 0 to 255. If you want to set the LCD 
panel brightness, you should call AdvLibBrightSet() to set the brightness  
you want, then write the brightness to flash ROM with AdvLibBrightAp-
ply(), or your brightness setting is volatile.
AdvLibBrightGet
Call this function to get the current screen brightness.
* BOOL AdvLibBrightGet(BYTE *brightness)
+ Parameters
  - brightness
    [out] The current screen brightness. The range is set from 0 to 255.
+ Return Value
  - TRUE (nonzero) on success.
    FALSE (zero) on failure.
+ Remarks
The brightness range is the set of contiguous integer values that applica-
tions can control. The range is set from 0 to 255. The brightness 0 is dark-
est, and the brightness 255 is brightest.