MG32L003 Standard Peripherals Firmware Library
|
Functions | |
void | OWIRE_DeInit (void) |
Deinitializes the OWIRE peripheral registers to their default reset values. More... | |
void | OWIRE_Init (OWIRE_InitTypeDef *OWIRE_InitStruct) |
Initializes the OWIRE mode according to the specified parameters in the OWIRE_InitTypeDef and create the associated handler. More... | |
void | OWIRE_Cmd (FunctionalState NewState) |
Enables or disables the specified OWIRE peripheral. More... | |
void | OWIRE_ITConfig (uint32_t OWIRE_IT, FunctionalState NewState) |
Enables or disables the specified OWIRE interrupts. More... | |
uint8_t | OWIRE_ReadData (void) |
Read one data from DATA register. More... | |
void | OWIRE_WriteData (uint8_t Data) |
Write one data to DATA register. More... | |
void | OWIRE_WriteCommand (uint8_t Command) |
Write command to CMD register. More... | |
FlagStatus | OWIRE_GetFlagStatus (uint32_t OWIRE_FLAG) |
Checks whether the specified the OWIRE flag is set or not. More... | |
void | OWIRE_ClearFlag (uint32_t OWIRE_FLAG) |
Clears the OWIRE's pending flags. More... | |
ITStatus | OWIRE_GetITStatus (uint32_t OWIRE_IT) |
Checks whether the OWIRE interrupt has occurred or not. More... | |
void | OWIRE_ClearITPendingBit (uint32_t OWIRE_IT) |
Clears the OWIRE's interrupt pending bits. More... | |
void OWIRE_ClearFlag | ( | uint32_t | OWIRE_FLAG | ) |
Clears the OWIRE's pending flags.
OWIRE_FLAG | specifies the flag bit to clear. This parameter can be any combination of the following values:
|
None |
void OWIRE_ClearITPendingBit | ( | uint32_t | OWIRE_IT | ) |
Clears the OWIRE's interrupt pending bits.
OWIRE_IT | Specifies the OWIRE's interrupt to clear. This parameter can be one of the following values:
|
None |
void OWIRE_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the specified OWIRE peripheral.
NewState | new state of the OWIRE peripheral. This parameter can be: ENABLE or DISABLE. |
None |
void OWIRE_DeInit | ( | void | ) |
Deinitializes the OWIRE peripheral registers to their default reset values.
None |
None |
FlagStatus OWIRE_GetFlagStatus | ( | uint32_t | OWIRE_FLAG | ) |
Checks whether the specified the OWIRE flag is set or not.
OWIRE_FLAG | Specifies the OWIRE flag to check. This parameter can be one of the following values:
|
The | new state of OWIRE_FLAG (SET or RESET). |
ITStatus OWIRE_GetITStatus | ( | uint32_t | OWIRE_IT | ) |
Checks whether the OWIRE interrupt has occurred or not.
OWIRE_IT | specifies the OWIRE interrupt source to check. This parameter can be one of the following values:
|
The | new state of the OWIRE_IT(SET or RESET). |
void OWIRE_Init | ( | OWIRE_InitTypeDef * | OWIRE_InitStruct | ) |
Initializes the OWIRE mode according to the specified parameters in the OWIRE_InitTypeDef and create the associated handler.
OWIRE_InitStruct | pointer to a OWIRE_InitTypeDef structure that contains the configuration information for the specified OWIRE peripheral. |
None |
void OWIRE_ITConfig | ( | uint32_t | OWIRE_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified OWIRE interrupts.
OWIRE_IT | specifies the OWIRE interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState | new state of the OWIRE interrupts. This parameter can be: ENABLE or DISABLE. |
None |
uint8_t OWIRE_ReadData | ( | void | ) |
Read one data from DATA register.
The | read data. |
void OWIRE_WriteCommand | ( | uint8_t | Command | ) |
Write command to CMD register.
Command | Specifies the command to write. This parameter can be one of the following values:
|
None |
void OWIRE_WriteData | ( | uint8_t | Data | ) |
Write one data to DATA register.
Data | The data to write. |
None |