Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1 8 Ver.1.0.0
6.2.1 OTA Processing in Attribute Table on Slave Side ................................... 141
6.2.2 OTA Data Packet Format ......................................................................... 142
6.2.3 RF Transfer Processing on Master Side .................................................. 143
6.2.4 RF Receive Processing on Slave Side .................................................... 146
7. Key Scan ...................................................................................................................... 149
7.1 Key Matrix ........................................................................................................... 149
7.2 Keyscan, Keymap and Keycode ........................................................................ 151
7.2.1 Keyscan .................................................................................................... 151
7.2.2 Keymap &kb_event .................................................................................. 151
7.3 Keycode .............................................................................................................. 154
7.4 Keyscan Flow ..................................................................................................... 156
7.4.1 Basic Keyscan Flow ................................................................................. 156
7.4.2 Keyscan Flow Timing Optimization .......................................................... 157
7.5 Deepsleep Wakeup Fast Keyscan ..................................................................... 159
7.6 Repeat Key Processing ...................................................................................... 161
7.7 Stuck Key Processing ........................................................................................ 162
7.8 Power Optimization for Long Key Press ............................................................ 164
8. LED Management ........................................................................................................ 165
8.1 LED Task Related Functions.............................................................................. 165
8.2 LED Task Configuration and Management ........................................................ 165
8.2.1 LED Event Definition ................................................................................ 165
8.2.2 LED Event Priority .................................................................................... 166
9. blt Software Timer ........................................................................................................ 168
9.1 Timer Initialization............................................................................................... 168
9.2 Timer Inquiry Processing .................................................................................... 168
9.3 Add Timer Task .................................................................................................. 171
9.4 Delete Timer Task .............................................................................................. 171
9.5 Demo .................................................................................................................. 171
10. IR ................................................................................................................................ 174
10.1 PWM Driver ...................................................................................................... 174
10.1.1 PWM id and Pin ..................................................................................... 174
10.1.2 PWM Clock ............................................................................................ 175
10.1.3 PWM Cycle and Duty ............................................................................. 176
10.1.4 PWM Revert ........................................................................................... 177