MKW30Z; SDK1.3; IAR 7.50; Framework Keyboard implement TSI buttons

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MKW30Z; SDK1.3; IAR 7.50; Framework Keyboard implement TSI buttons

Jump to solution
608 Views
lucianfiran
Contributor V

KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0)

 

Is there a way to use Keyboard libs from framework for TSI buttons, like sort long press, event management ?

Labels (1)
0 Kudos
1 Solution
491 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Lucian Firan 

In Keyboard libs from framework there is not implementation for TSI, so you would have to add it. It is possible, since TSI SDK drivers can be added to your project, BUT TSI and GPIO drivers works very different and you would need to change drivers too much. In GPIO they configured pins to detect  FallingEdge interrupt, so they can get any change in the switch button, but in TSI you should add a timer that will constantly measure your electrode, and this is not the best way to do detect this events. So it is possible but it's not recommendable due to all the change that you would need to do.

Hope this information helps you
Have a great day,
Jorge Alcala

View solution in original post

1 Reply
492 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Lucian Firan 

In Keyboard libs from framework there is not implementation for TSI, so you would have to add it. It is possible, since TSI SDK drivers can be added to your project, BUT TSI and GPIO drivers works very different and you would need to change drivers too much. In GPIO they configured pins to detect  FallingEdge interrupt, so they can get any change in the switch button, but in TSI you should add a timer that will constantly measure your electrode, and this is not the best way to do detect this events. So it is possible but it's not recommendable due to all the change that you would need to do.

Hope this information helps you
Have a great day,
Jorge Alcala