OWIRE driver modules.
More...
OWIRE driver modules.
◆ OWIRE_ClearFlag()
void OWIRE_ClearFlag |
( |
uint32_t |
OWIRE_FLAG | ) |
|
Clears the OWIRE's pending flags.
- Parameters
-
OWIRE_FLAG | specifies the flag bit to clear. This parameter can be any combination of the following values:
- OWIRE_FLAG_ACKERROR: Slave answer error flag.
- OWIRE_FLAG_INITDONE: Initialization completion flag.
- OWIRE_FLAG_TXDONE: Send complete flag.
- OWIRE_FLAG_RXDONE: Receiving complete flag.
|
- Return values
-
◆ OWIRE_ClearITPendingBit()
void OWIRE_ClearITPendingBit |
( |
uint32_t |
OWIRE_IT | ) |
|
Clears the OWIRE's interrupt pending bits.
- Parameters
-
OWIRE_IT | Specifies the OWIRE's interrupt to clear. This parameter can be one of the following values:
- OWIRE_IT_ACKERROR: Slave answer error interrupt flag.
- OWIRE_IT_INITDONE: Initialization completion interrupt flag.
- OWIRE_IT_TXDONE: Send complete interrupt flag.
- OWIRE_IT_RXDONE: Receiving complete interrupt flag.
|
- Return values
-
◆ OWIRE_Cmd()
void OWIRE_Cmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the specified OWIRE peripheral.
- Parameters
-
NewState | new state of the OWIRE peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
◆ OWIRE_DeInit()
void OWIRE_DeInit |
( |
void |
| ) |
|
Deinitializes the OWIRE peripheral registers to their default reset values.
- Parameters
-
- Return values
-
◆ OWIRE_GetFlagStatus()
FlagStatus OWIRE_GetFlagStatus |
( |
uint32_t |
OWIRE_FLAG | ) |
|
Checks whether the specified the OWIRE flag is set or not.
- Parameters
-
OWIRE_FLAG | Specifies the OWIRE flag to check. This parameter can be one of the following values:
- OWIRE_FLAG_ACKERROR: Slave answer error flag.
- OWIRE_FLAG_INITDONE: Initialization completion flag.
- OWIRE_FLAG_TXDONE: Send complete flag.
- OWIRE_FLAG_RXDONE: Receiving complete flag.
|
- Return values
-
The | new state of OWIRE_FLAG (SET or RESET). |
◆ OWIRE_GetITStatus()
ITStatus OWIRE_GetITStatus |
( |
uint32_t |
OWIRE_IT | ) |
|
Checks whether the OWIRE interrupt has occurred or not.
- Parameters
-
OWIRE_IT | specifies the OWIRE interrupt source to check. This parameter can be one of the following values:
- OWIRE_IT_ACKERROR: Slave answer error interrupt flag.
- OWIRE_IT_INITDONE: Initialization completion interrupt flag.
- OWIRE_IT_TXDONE: Send complete interrupt flag.
- OWIRE_IT_RXDONE: Receiving complete interrupt flag.
|
- Return values
-
The | new state of the OWIRE_IT(SET or RESET). |
◆ OWIRE_Init()
Initializes the OWIRE mode according to the specified parameters in the OWIRE_InitTypeDef and create the associated handler.
- Parameters
-
OWIRE_InitStruct | pointer to a OWIRE_InitTypeDef structure that contains the configuration information for the specified OWIRE peripheral. |
- Return values
-
◆ OWIRE_ITConfig()
void OWIRE_ITConfig |
( |
uint32_t |
OWIRE_IT, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the specified OWIRE interrupts.
- Parameters
-
OWIRE_IT | specifies the OWIRE interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
- OWIRE_IT_ACKERROR: Slave answer error interrupt flag.
- OWIRE_IT_INITDONE: Initialization completion interrupt flag.
- OWIRE_IT_TXDONE: Send complete interrupt flag.
- OWIRE_IT_RXDONE: Receiving complete interrupt flag.
|
NewState | new state of the OWIRE interrupts. This parameter can be: ENABLE or DISABLE. |
- Return values
-
◆ OWIRE_ReadData()
uint8_t OWIRE_ReadData |
( |
void |
| ) |
|
Read one data from DATA register.
- Return values
-
◆ OWIRE_WriteCommand()
void OWIRE_WriteCommand |
( |
uint8_t |
Command | ) |
|
Write command to CMD register.
- Parameters
-
Command | Specifies the command to write. This parameter can be one of the following values:
- OWIRE_COMMAND_INIT
- OWIRE_COMMAND_TX
- OWIRE_COMMAND_RX
|
- Return values
-
◆ OWIRE_WriteData()
void OWIRE_WriteData |
( |
uint8_t |
Data | ) |
|
Write one data to DATA register.
- Parameters
-
- Return values
-