MG32L003 Standard Peripherals Firmware Library
Functions
mg32l003_owire.c File Reference

This file provides all the OWIRE firmware functions. More...

#include "mg32l003_owire.h"
#include "mg32l003_rcc.h"

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...
 

Detailed Description

This file provides all the OWIRE firmware functions.

Author
megawin Application Team
Version
V0.0.5
Date
13-August-2024