HPM SDK
HPMicro Software Development Kit
MCHTMR driver APIs

MCHTMR driver APIs. More...

Functions

static uint64_t mchtmr_get_count (MCHTMR_Type *ptr)
 mchtmr get counter value More...
 
static void mchtmr_set_compare_value (MCHTMR_Type *ptr, uint64_t target)
 mchtmr set comparator value More...
 
static void mchtmr_delay (MCHTMR_Type *ptr, uint64_t delay)
 mchtmr set delay value More...
 
void mchtmr_init_counter (MCHTMR_Type *ptr, uint64_t v)
 initialize mchtmr counter More...
 

Detailed Description

MCHTMR driver APIs.

Function Documentation

◆ mchtmr_delay()

static void mchtmr_delay ( MCHTMR_Type ptr,
uint64_t  delay 
)
inlinestatic

#include <drivers/inc/hpm_mchtmr_drv.h>

mchtmr set delay value

Parameters
[in]ptrMCHTMR base address
[in]delaydelay cycles

◆ mchtmr_get_count()

static uint64_t mchtmr_get_count ( MCHTMR_Type ptr)
inlinestatic

#include <drivers/inc/hpm_mchtmr_drv.h>

mchtmr get counter value

Parameters
[in]ptrMCHTMR base address

◆ mchtmr_init_counter()

void mchtmr_init_counter ( MCHTMR_Type ptr,
uint64_t  v 
)

#include <drivers/inc/hpm_mchtmr_drv.h>

initialize mchtmr counter

Parameters
[in]ptrMCHTMR base address
[in]vvalue to be set

◆ mchtmr_set_compare_value()

static void mchtmr_set_compare_value ( MCHTMR_Type ptr,
uint64_t  target 
)
inlinestatic

#include <drivers/inc/hpm_mchtmr_drv.h>

mchtmr set comparator value

Parameters
[in]ptrMCHTMR base address
[in]targetcomparator target value