| 数据搜索系统,热门电子元器件搜索 |
|
AN4099 数据表(PDF) 23 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4099 数据表(HTML) 23 Page - STMicroelectronics |
|
23 / 39 page ![]() AN4099 Infrared receiver Doc ID 023110 Rev 2 23/39 Figure 20. RC5 solution flowchart 3.3.2 RC5 decoding library The RC5 driver is very simple to use. RC5_Init() This function initializes the different peripherals (GPIO, TIMER,...). RC5_ResetPacket() This function sets the packet structure to the default state. This function is mainly called in the TIM2_IRQHandler routine. It occurs each TIMER overflow to reset the RC5 packet. RC5_Decode(RC5_Frame_TypeDef *rc5_frame) This function is intended to be called in the user application. It decodes the RC5 received messages. The following structure contains the different values of the RC5 frame. typedef struct { __IO uint8_t FieldBit; /* Field bit field */ __IO uint8_t ToggleBit; /* Toggle bit field */ __IO uint8_t Address; /* Address field */ __IO uint8_t Command; /* Command field */ In itia li Tim e r i F a lli n g e d g e Te st: Hig h pu ls e La s t B it= 1 La s t B it= 0 2T Te st: Hig h pu ls e =T =T |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |