Patent ID: 11921548
Assignee: STMICROELECTRONICS S.R.L.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. A device for a foldable electronic device, the device comprising:
a memory; and
processing circuitry coupled to the memory, wherein the processing circuitry, in operation:
acquires a first charge variation signal through a first electrode and a second charge variation signal through a second electrode,
the first and second charge variation signals being indicative of respective environmental electrostatic charge variations,
the foldable electronic device including a first hardware element and a second hardware element configured to move in to a first state and a second state,
the first hardware element and the second hardware element including the first electrode and the second electrode, respectively,
the first and second electrodes being in contact with each other when the foldable electronic device is in the first state, and being at a distance from each other when the foldable electronic device is in the second state;

generates a differential signal indicative of a difference between the first and second charge variation signals;
generates, as a function of the differential signal, one or more feature signals indicative of respective features of the differential signal,
the generation of the one or more feature signals including calculation, for the differential signal, of at least one of a peak-to-peak amplitude, a variance, a standard deviation, an energy, or a number of peaks with amplitude greater than a threshold amplitude; and

generates, as a function of the one or more feature signals, a contact signal which is equal to a value selected from a first value and a second value,
the first value being indicative of the second state of the foldable electronic device,
the second value being indicative of the first state of the foldable electronic device.