Patent ID: 8847776

Claim:
A system for processing sensor information in a wireless communications device, comprising: a processor; and a plurality of sensors, each sensor configured to transmit signals to the processor indicative of a state of the sensor; wherein the processor is configured to implement a sensor processing module and a general sensor module; the sensor processing module configured, for each of the plurality of sensors, to: receive the transmitted signals indicative of the state of the respective sensor; and process the received signals, to determine whether there is a change in a state of the wireless communication device, and if so transmit a first signal representing the change in the state of the wireless communication device; and the general sensor module configured to: accept registration of at least one callback function made by at least one affected component of the wireless communication device having a function that is affected by the change in the state of the wireless communication device, wherein the at least one affected component registers the at least one callback function during initialization of the system; receive the first signal from the sensor processing module; and after receiving the first signal, execute the at least one callback function by transmitting a second signal representing the change in the state of the wireless communication device to the at least one affected component.