API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IALARMMGR_SETUSERCODE()

Brew Release
Brew MP 1.0.2
See Also
IALARMMGR_GetUserCode()
Description
This inline helper function sets user code values.
Params
nUserCode
[]:
16-bit alarm user code.
bUserCodeProvided
[]:
if set specifies that user code is supplied by user, else generated by BREW.
bAbsoluteTime
[]:
if set specifies that alarm seconds are for absolute time, else relative from now.
Prototype
  • uint32 IALARMMGR_SetUserCode
    (
    uint16 nUserCode, 
    boolean bUserCodeProvided, 
    boolean bAbsoluteTime
    )
    
Return
  • uint32, where the first two bytes (MSB) specify nUserCode, and the next 2 bytes carry 16 bit flags. The least significant bit specifies bUserCodeProvided, the next significant bit specifies bAbsoluteTime.
Comments
None