Silicon Laboratories Si4010 Software Programming Manual page 38

Hide thumbs Also See for Si4010:
Table of Contents

Advertisement

AN370
7.2.7. Button Service Module Functions
vBsr_Setup
Description: Set up the button detection and debouncing for the chip. The function also
initializes PTS pointers and attributes, calling the vBsr_InitPts() function internally.
Inputs:
priSetup: (pointer to tBsr_Setup instance) For contents of tBsr_Setup structure
see table above.
Outputs:
None
wBsr_Pop
Description: Returns a two byte WORD which contains timestamp information in the
MSB byte and the button vector in the LSB byte, effectively returning the tBsr_PtsEle-
ment type structure in a WORD variable. The button vector and timestamp represent the
oldest qualified button push in the PTS. When there are 0 elements in the PTS this func-
tion will return 0. This function also advances the read pointer to the next element in the
PTS, removing the currently returned button from information the PTS.
Inputs:
None
Outputs:
Timestamp and button vector: (WORD) MSB byte represent the timestamp bTime-
stamp, LSB byte represents is the button vector bButtonVector. Effectively it is a
structure of type tBsr_PtsElement packed into the WORD type.
38
Rev. 1.0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Si4010 and is the answer not in the manual?

Questions and answers

Table of Contents