MG32L003 Standard Peripherals Firmware Library
|
Functions | |
void | LPUART_DeInit (LPUART_TypeDef *LPUARTx) |
Deinitializes the LPUARTx peripheral registers to their default reset values. More... | |
void | LPUART_Init (LPUART_TypeDef *LPUARTx, LPUART_InitTypeDef *LPUART_InitStruct) |
Initializes the LPUARTx peripheral according to the specified parameters in the LPUART_InitStruct. More... | |
void | LPUART_StructInit (LPUART_InitTypeDef *LPUART_InitStruct) |
Fills each LPUART_InitStruct member with its default value. More... | |
void | LPUART_Cmd (LPUART_TypeDef *LPUARTx, FunctionalState NewState) |
Enables or disables the specified LPUART peripheral. More... | |
void | LPUART_WriteData (LPUART_TypeDef *LPUARTx, uint8_t Data) |
Write data to SBUF register. More... | |
uint8_t | LPUART_ReadData (LPUART_TypeDef *LPUARTx) |
Read data from SBUF register. More... | |
void | LPUART_ITConfig (LPUART_TypeDef *LPUARTx, uint32_t LPUART_IT, FunctionalState NewState) |
Enables or disables the LPUARTx's interrupts. More... | |
void | LPUART_MultideviceCmd (LPUART_TypeDef *LPUARTx, FunctionalState NewState) |
Enables or disables the LPUARTx's Multidevice function. More... | |
void | LPUART_SetAddress (LPUART_TypeDef *LPUARTx, uint8_t LPUART_Address) |
Sets the address of the LPUART node. More... | |
void | LPUART_SetAddressMask (LPUART_TypeDef *LPUARTx, uint8_t LPUART_AddressMask) |
Sets the address mask of the LPUART node. More... | |
FlagStatus | LPUART_GetFlagStatus (LPUART_TypeDef *LPUARTx, uint32_t LPUART_FLAG) |
Checks whether the specified UART flag is set or not. More... | |
void | LPUART_ClearFlag (LPUART_TypeDef *LPUARTx, uint32_t LPUART_FLAG) |
Clear the specified LPUART flag. More... | |
void LPUART_ClearFlag | ( | LPUART_TypeDef * | LPUARTx, |
uint32_t | LPUART_FLAG | ||
) |
Clear the specified LPUART flag.
LPUARTx | Pointer to selected LPUART peripheral. This parameter can be one of the following values: LPUAERT. |
LPUART_FLAG | specifies the flag to clear. This parameter can be one of the following values:
|
None. |
void LPUART_Cmd | ( | LPUART_TypeDef * | LPUARTx, |
FunctionalState | NewState | ||
) |
Enables or disables the specified LPUART peripheral.
LPUARTx | Select the LPUART peripheral. This parameter can be one of the following values: LPUART. |
NewState | new state of the LPUARTx peripheral. This parameter can be: ENABLE or DISABLE. |
None |
void LPUART_DeInit | ( | LPUART_TypeDef * | LPUARTx | ) |
Deinitializes the LPUARTx peripheral registers to their default reset values.
LPUARTx | Pointer to selected LPUART peripheral. |
None |
FlagStatus LPUART_GetFlagStatus | ( | LPUART_TypeDef * | LPUARTx, |
uint32_t | LPUART_FLAG | ||
) |
Checks whether the specified UART flag is set or not.
LPUARTx | Pointer to selected UART peripheral. This parameter can be one of the following values: LPUART. |
UART_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of LPUART_FLAG (SET or RESET). |
void LPUART_Init | ( | LPUART_TypeDef * | LPUARTx, |
LPUART_InitTypeDef * | LPUART_InitStruct | ||
) |
Initializes the LPUARTx peripheral according to the specified parameters in the LPUART_InitStruct.
LPUARTx | Pointer to selected LPUART peripheral. |
LPUART_InitStruct | pointer to a LPUART_InitTypeDef structure that contains the configuration information for the specified LPUART peripheral. |
None |
void LPUART_ITConfig | ( | LPUART_TypeDef * | LPUARTx, |
uint32_t | LPUART_IT, | ||
FunctionalState | NewState | ||
) |
Enables or disables the LPUARTx's interrupts.
LPUARTx | Pointer to selected LPUART peripheral. This parameter can be one of the following values: LPUART. |
LPUART_IT | specifies the LPUART interrupt sources to be enabled or disabled. This parameter can be a combination of the following values:
|
NewState | new state of the interrupts. This parameter can be: ENABLE or DISABLE. |
None |
void LPUART_MultideviceCmd | ( | LPUART_TypeDef * | LPUARTx, |
FunctionalState | NewState | ||
) |
Enables or disables the LPUARTx's Multidevice function.
LPUARTx | Pointer to selected LPUART peripheral. This parameter can be one of the following values: LPUART. |
NewState | new state of the UART Multidevice function. This parameter can be: ENABLE or DISABLE. |
None |
uint8_t LPUART_ReadData | ( | LPUART_TypeDef * | LPUARTx | ) |
Read data from SBUF register.
LPUARTx | Pointer to selected LPUART peripheral. This parameter can be one of the following values: LPUART. |
The | received data |
void LPUART_SetAddress | ( | LPUART_TypeDef * | LPUARTx, |
uint8_t | LPUART_Address | ||
) |
Sets the address of the LPUART node.
LPUARTx | Pointer to selected LPUART peripheral. This parameter can be one of the following values: LPUART. |
LPUART_Address | Indicates the address of the LPUART node. |
None |
void LPUART_SetAddressMask | ( | LPUART_TypeDef * | LPUARTx, |
uint8_t | LPUART_AddressMask | ||
) |
Sets the address mask of the LPUART node.
LPUARTx | Pointer to selected LPUART peripheral. This parameter can be one of the following values: LPUART. |
LPUART_AddressMask | Indicates the address mask of the LPUART node. |
None |
void LPUART_StructInit | ( | LPUART_InitTypeDef * | LPUART_InitStruct | ) |
Fills each LPUART_InitStruct member with its default value.
LPUART_InitStruct | pointer to a LPUART_InitTypeDef structure which will be initialized. |
None |
void LPUART_WriteData | ( | LPUART_TypeDef * | LPUARTx, |
uint8_t | Data | ||
) |
Write data to SBUF register.
LPUARTx | Pointer to selected LPUART peripheral. This parameter can be one of the following values: LPUART. |
Data | the data to write. |
None |