Other Parts Discussed in Thread: CC2640R2F
The PIN driver API allows you to enable hysteresis on an input pin by using the PIN_HYSTERESIS input mode option. Looking at the datasheet for the CC2642R, it shows the voltage levels where the transitions from 0 -> 1 and 1 -> 0 occur. However, it doesn't seem to explain what the behavior of input transitions will be without hysteresis enabled. See below:
Is this behavior described elsewhere? Or is hysteresis always enabled on the CC2642R? There doesn't seem to be an option to disable hysteresis other than to not include the PIN_HYSTERESIS input configuration option when configuring a pin.
Interestingly, the CC2640R2F datasheet does describe the no hysteresis behavior and the hysteresis behavior, which helps clear up a lot of my confusion on what the behavior would be. See below:
One final question. The GPIO driver API doesn't mention hysteresis at all or provide any pin configuration options for it either. Is there are reason for this? When should someone choose to use the GPIO drivers vs the PIN drivers?