| Electronic Components Datasheet Search |
|
AN4099 Datasheet(PDF) 35 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4099 Datasheet(HTML) 35 Page - STMicroelectronics |
|
35 / 39 page ![]() AN4099 Interface layer Doc ID 023110 Rev 2 35/39 Note: IR refers to the name of the IR protocol. For example, SIRC_HEADER_LOW_MIN_US. – Change the IR protocol frame field in IR_Frame_TypeDef structure. typedef struct { /* Structure of the IR frame ( Address, Command,....)*/ } IR_Frame_TypeDef; – in the sirc_decode.c file, add the appropriate IR_Commands and IR_devices tables for the IR protocol. 4.2.2 IR transmitter drivers To include an infrared encoder driver based on the IRTIM solution in a user application you must: 1. Add the header file of the appropriate IR protocol to your project. Example: rc5_encode.h. 2. Add the file.c corresponding to the IR protocol to your project. Example: rc5_encode.c. 3. Call the protocol initiation function in the main() Example: RC5_Encode_Init(); 4. Add the TIMx interrupt functions to stm32f0xx_it.c or stm32f3xx_it.c. Example: void TIM16_IRQHandler(void) { RC5_Encode_SignalGenerate(RC5_FrameManchestarFormat); /* Clear TIM16 update interrupt */ TIM_ClearITPendingBit(TIM16, TIM_IT_Update); } IR_VALUE_MARGIN_US Margin in µs 100 IR_VALUE_00_US Bit0 duration in µs 1200 Table 6. List of defines in the header file for the IR protocol parameters Defines Meaning Example settings for SIRC protocol |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |