Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
111
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL IRDA Generic Driver

UM1725

34 HAL IRDA Generic Driver

34.1IRDA Firmware driver registers structures

34.1.1IRDA_InitTypeDef

Data Fields

uint32_t BaudRate

uint32_t WordLength

uint32_t Parity

uint32_t Mode

uint8_t Prescaler

uint32_t IrDAMode

Field Documentation

uint32_t IRDA_InitTypeDef::BaudRate

This member configures the IRDA communication baud rate. The baud rate is computed using the following formula:IntegerDivider = ((PCLKx) / (8 * (hirda- >Init.BaudRate)))FractionalDivider = ((IntegerDivider - ((uint32_t) IntegerDivider)) * 8)

+ 0.5

uint32_t IRDA_InitTypeDef::WordLength

Specifies the number of data bits transmitted or received in a frame. This parameter can be a value of IRDA_Word_Length

uint32_t IRDA_InitTypeDef::Parity

Specifies the parity mode. This parameter can be a value of IRDA_Parity Note:When parity is enabled, the computed parity is inserted at the MSB position of the transmitted data (9th bit when the word length is set to 9 data bits; 8th bit when the word length is set to 8 data bits).

uint32_t IRDA_InitTypeDef::Mode

Specifies wether the Receive or Transmit mode is enabled or disabled. This parameter can be a value of IRDA_Mode

uint8_t IRDA_InitTypeDef::Prescaler

Specifies the Prescaler

uint32_t IRDA_InitTypeDef::IrDAMode

Specifies the IrDA mode This parameter can be a value of IRDA_Low_Power

34.1.2IRDA_HandleTypeDef

Data Fields

USART_TypeDef * Instance

IRDA_InitTypeDef Init

uint8_t * pTxBuffPtr

uint16_t TxXferSize

uint16_t TxXferCount

uint8_t * pRxBuffPtr

436/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]