CAT2 Peripheral Driver Library

Functions

uint32_t Cy_LF_GetCount (void *hwContext)
 This function returns the current LF counter value. More...
 
void Cy_LF_MaskInterrupt (void *hwContext)
 This function masks the interrupts from the LF counter. More...
 
void Cy_LF_UnmaskInterrupt (void *hwContext)
 This function unmasks the interrupts from the LF counter. More...
 
void Cy_LF_SetMatch (void *hwContext, uint32_t match)
 Configures the LF counter match comparison value. More...
 
uint32_t Cy_LF_GetIgnoreBits (void *hwContext)
 This function reads the number of the most significant bits of the LF counter that are not checked against the match value. More...
 
void Cy_LF_ClearInterrupt (void *hwContext)
 This function clears the LF counter interrupt. More...
 
uint32_t Cy_LF_GetMatch (void *hwContext)
 This function reads the LF counter match comparison value. More...
 

Detailed Description

Function Documentation

◆ Cy_LF_GetCount()

uint32_t Cy_LF_GetCount ( void *  hwContext)

This function returns the current LF counter value.

Parameters
hwContextPointer to the context structure of the LF counter hardware block.
Returns
Live LF counter value

◆ Cy_LF_MaskInterrupt()

void Cy_LF_MaskInterrupt ( void *  hwContext)

This function masks the interrupts from the LF counter.

After masking interrupts, they are not passed to the CPU.

Parameters
hwContextPointer to the context structure of the LF counter hardware block.
Returns
None

◆ Cy_LF_UnmaskInterrupt()

void Cy_LF_UnmaskInterrupt ( void *  hwContext)

This function unmasks the interrupts from the LF counter.

After unmasking interrupts, they are passed to the CPU.

Parameters
hwContextPointer to the context structure of the LF counter hardware block.
Returns
None

◆ Cy_LF_SetMatch()

void Cy_LF_SetMatch ( void *  hwContext,
uint32_t  match 
)

Configures the LF counter match comparison value.

Parameters
hwContextPointer to the context structure of the LF counter hardware block.
matchThe valid range is [0-65535]. The value to be used to match against the counter.

◆ Cy_LF_GetIgnoreBits()

uint32_t Cy_LF_GetIgnoreBits ( void *  hwContext)

This function reads the number of the most significant bits of the LF counter that are not checked against the match value.

Parameters
hwContextPointer to the context structure of the LF counter hardware block.
Returns
The number of the most significant bits.

◆ Cy_LF_ClearInterrupt()

void Cy_LF_ClearInterrupt ( void *  hwContext)

This function clears the LF counter interrupt.

Parameters
hwContextPointer to the context structure of the LF counter hardware block.
Returns
None

◆ Cy_LF_GetMatch()

uint32_t Cy_LF_GetMatch ( void *  hwContext)

This function reads the LF counter match comparison value.

Parameters
hwContextPointer to the context structure of the LF counter hardware block.
Returns
LF counter match value.