![]() |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
Modules | |
| HTMR_Registers | |
Enumerations | |
| enum | mxc_htmr_int_en_t |
| enum | mxc_htmr_int_fl_t |
Functions | |
| int | MXC_HTMR_EnableInt (mxc_htmr_regs_t *htmr, uint32_t mask) |
| int | MXC_HTMR_DisableInt (mxc_htmr_regs_t *htmr, uint32_t mask) |
| int | MXC_HTMR_SetLongAlarm (mxc_htmr_regs_t *htmr, uint32_t interval) |
| int | MXC_HTMR_SetShortAlarm (mxc_htmr_regs_t *htmr, uint32_t interval) |
| int | MXC_HTMR_Start (mxc_htmr_regs_t *htmr) |
| int | MXC_HTMR_Stop (mxc_htmr_regs_t *htmr) |
| int | MXC_HTMR_Init (mxc_htmr_regs_t *htmr, uint32_t longInterval, uint8_t shortInterval) |
| int | MXC_HTMR_CheckBusy (mxc_htmr_regs_t *htmr) |
| int | MXC_HTMR_GetFlags (mxc_htmr_regs_t *htmr) |
| int | MXC_HTMR_ClearFlags (mxc_htmr_regs_t *htmr, int flags) |
| int | MXC_HTMR_GetShortCount (mxc_htmr_regs_t *htmr) |
| int | MXC_HTMR_GetLongCount (mxc_htmr_regs_t *htmr) |
| enum mxc_htmr_int_en_t |
| enum mxc_htmr_int_fl_t |
| int MXC_HTMR_CheckBusy | ( | mxc_htmr_regs_t * | htmr | ) |
Check if BUSY bit is 0.
| htmr | pointer to the htmr register structure |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_ClearFlags | ( | mxc_htmr_regs_t * | htmr, |
| int | flags | ||
| ) |
Clear interrupt flags.
| htmr | pointer to the htmr register structure |
| flags | The bitwise OR of the interrupts flags to cleear. See mxc_htmr_int_fl_t for the list of possible flags. |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_DisableInt | ( | mxc_htmr_regs_t * | htmr, |
| uint32_t | mask | ||
| ) |
Disable Interurpts.
| htmr | pointer to the htmr register structure |
| mask | The mask of interrupts to disable. See mxc_htmr_int_en_t for available choices. |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_EnableInt | ( | mxc_htmr_regs_t * | htmr, |
| uint32_t | mask | ||
| ) |
Enable Interurpts.
| htmr | pointer to the htmr register structure |
| mask | The bitwise OR of interrupts to enable. See mxc_htmr_int_en_t for available choices. |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_GetFlags | ( | mxc_htmr_regs_t * | htmr | ) |
Get interrupt flags.
| htmr | pointer to the htmr register structure |
| int MXC_HTMR_GetLongCount | ( | mxc_htmr_regs_t * | htmr | ) |
Get value in long interval register.
| htmr | pointer to the htmr register structure |
| int MXC_HTMR_GetShortCount | ( | mxc_htmr_regs_t * | htmr | ) |
Get value in short interval register.
| htmr | pointer to the htmr register structure |
| int MXC_HTMR_Init | ( | mxc_htmr_regs_t * | htmr, |
| uint32_t | longInterval, | ||
| uint8_t | shortInterval | ||
| ) |
Initialize the longInterval and shortInterval registers and enable MXC_HTMR.
| htmr | pointer to the htmr register structure |
| longInterval | set the MXC_HTMR long counter (32-bit) |
| shortInterval | set the MXC_HTMR short counter (8-bit) |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_SetLongAlarm | ( | mxc_htmr_regs_t * | htmr, |
| uint32_t | interval | ||
| ) |
Set Long Interval alarm value and enable Interrupt.
| htmr | pointer to the htmr register structure |
| interval | 20-bit value 0-0xFFFFF |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_SetShortAlarm | ( | mxc_htmr_regs_t * | htmr, |
| uint32_t | interval | ||
| ) |
Set Short Interval alarm value and enable interrupt,.
| htmr | pointer to the htmr register structure |
| interval | 32-bit value 0-0xFFFFFFFF |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_Start | ( | mxc_htmr_regs_t * | htmr | ) |
Enable/Start the High Speed Timer.
| htmr | pointer to the htmr register structure |
| returns | Success or Fail, see MXC_ERROR_CODES |
| int MXC_HTMR_Stop | ( | mxc_htmr_regs_t * | htmr | ) |
Disable/Stop the High Speed Timer.
| htmr | pointer to the htmr register structure |
| returns | Success or Fail, see MXC_ERROR_CODES |