IR Exported Types

group IR_Exported_Types
struct IR_InitTypeDef

IR init structure definition.

Public Members

IRClock_TypeDef IR_Clock

Specify the source clock frequency. This parameter can be a value of IR Clock.

uint32_t IR_Freq

Specify the clock frequency. This parameter is IR carrier freqency whose unit is Hz.

float IR_DutyCycle

Specify the IR duty cycle.

IRMode_TypeDef IR_Mode

Specify the IR mode. This parameter can be a value of IR Mode.

IRIdleStatus_TypeDef IR_TxIdleLevel

Specify the IR output level in Tx mode. This parameter can be a value of IR Idle Status.

IRTxDataType_TypeDef IR_TxInverse

Specify inverse FIFO data or not in TX mode. This parameter can be a value of IR TX Data Type.

uint32_t IR_TxFIFOThrLevel

Specify TX FIFO interrupt threshold in TX mode. When TX FIFO depth <= threshold value, trigger interrupt. This parameter can be a value of 1 ~ 32.

IRRxStartMode_TypeDef IR_RxStartMode

Specify Start mode in RX mode. This parameter can be a value of IR RX Start Mode.

uint32_t IR_RxFIFOThrLevel

Specify RX FIFO interrupt threshold in RX mode. When RX FIFO depth > threshold value, trigger interrupt. This parameter can be a value of 1 ~ 32.

IRRxFifoDiscardSetting_TypeDef IR_RxFIFOFullCtrl

Specify data discard mode in RX mode when RX FIFO is full and receiving new data. This parameter can be a value of IR RX FIFO Discard Setting.

IRRxTriggerMode_TypeDef IR_RxTriggerMode

Specify trigger in RX mode. This parameter can be a value of IR RX Trigger Mode.

IRRxFilterTime_TypeDef IR_RxFilterTime

Specify filter time in RX mode. This parameter can be a value of IR RX Filter Time.

IRRxCounterThresholdType_TypeDef IR_RxCntThrType

Specify counter level type when trigger IR_INT_RX_CNT_THR interrupt in RX mode. This parameter can be a value of IR RX Counter Level.

uint32_t IR_RxCntThr

Specify counter threshold value when trigger IR_INT_RX_CNT_THR interrupt in RX mode.

FunctionalState IR_TxDmaEn

Specify the Tx dma mode. This parameter must be a value of DISABLE and ENABLE.

uint8_t IR_TxWaterLevel

Specify the DMA tx water level. This parameter must range from 0 to 32.

FunctionalState IR_RxDmaEn

Specify the Rx dma mode. This parameter must be a value of DISABLE and ENABLE.

uint8_t IR_RxWaterLevel

Specify the DMA rx water level. This parameter must range from 0 to 32.