STM8L15x Standard Peripherals Drivers: IRTIM

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

IRTIM driver modules. More...

Modules

 IRTIM_Private_Functions

Functions

void IRTIM_Cmd (FunctionalState NewState)
 Enables or disables the IRTIM peripheral.
void IRTIM_DeInit (void)
 Deinitializes the IRTIM peripheral registers to their default reset values.
FunctionalState IRTIM_GetHighSinkODStatus (void)
 Checks whether the IRTIM High Sink Open Drain buffer is Enabled or not.
FunctionalState IRTIM_GetStatus (void)
 Checks whether the IRTIM device is enabled or not.
void IRTIM_HighSinkODCmd (FunctionalState NewState)
 Enables or disables the High sink open drain buffer of the IRTIM peripheral.

Detailed Description

IRTIM driver modules.


Function Documentation

void IRTIM_Cmd ( FunctionalState  NewState)

Enables or disables the IRTIM peripheral.

Parameters:
NewState: The new state of the IRTIM peripheral. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 102 of file stm8l15x_irtim.c.

References DISABLE, IRTIM, IRTIM_CR_EN, and IS_FUNCTIONAL_STATE.

void IRTIM_DeInit ( void  )

Deinitializes the IRTIM peripheral registers to their default reset values.

Parameters:
None
Return values:
None

Definition at line 91 of file stm8l15x_irtim.c.

References IRTIM, and IRTIM_CR_RESET_VALUE.

FunctionalState IRTIM_GetHighSinkODStatus ( void  )

Checks whether the IRTIM High Sink Open Drain buffer is Enabled or not.

Parameters:
None
Return values:
stateof High Sink Open Drain buffer.

Definition at line 172 of file stm8l15x_irtim.c.

References IRTIM, and IRTIM_CR_HSEN.

FunctionalState IRTIM_GetStatus ( void  )

Checks whether the IRTIM device is enabled or not.

Parameters:
None
Return values:
stateof the IRTIM device.

Definition at line 162 of file stm8l15x_irtim.c.

References IRTIM, and IRTIM_CR_EN.

void IRTIM_HighSinkODCmd ( FunctionalState  NewState)

Enables or disables the High sink open drain buffer of the IRTIM peripheral.

Parameters:
NewState: The new state of the High sink open drain buffer. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 124 of file stm8l15x_irtim.c.

References DISABLE, IRTIM, IRTIM_CR_HSEN, and IS_FUNCTIONAL_STATE.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com