EFR32 Mighty Gecko 13 Software Documentation  efr32mg13-doc-5.1.2
em_cryotimer.h File Reference

Detailed Description

Ultra Low Energy Timer/Counter (CRYOTIMER) peripheral API.

Version
5.1.2

License

Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no obligation to support this Software. Silicon Labs is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.

Silicon Labs will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.

Definition in file em_cryotimer.h.

#include <stdbool.h>
#include "em_device.h"
#include "em_bus.h"

Go to the source code of this file.

Data Structures

struct  CRYOTIMER_Init_TypeDef
 

Macros

#define CRYOTIMER_INIT_DEFAULT
 

Enumerations

enum  CRYOTIMER_Osc_TypeDef {
  cryotimerOscLFRCO = _CRYOTIMER_CTRL_OSCSEL_LFRCO,
  cryotimerOscLFXO = _CRYOTIMER_CTRL_OSCSEL_LFXO,
  cryotimerOscULFRCO = _CRYOTIMER_CTRL_OSCSEL_ULFRCO
}
 
enum  CRYOTIMER_Period_TypeDef {
  cryotimerPeriod_1 = 0,
  cryotimerPeriod_2 = 1,
  cryotimerPeriod_4 = 2,
  cryotimerPeriod_8 = 3,
  cryotimerPeriod_16 = 4,
  cryotimerPeriod_32 = 5,
  cryotimerPeriod_64 = 6,
  cryotimerPeriod_128 = 7,
  cryotimerPeriod_256 = 8,
  cryotimerPeriod_512 = 9,
  cryotimerPeriod_1k = 10,
  cryotimerPeriod_2k = 11,
  cryotimerPeriod_4k = 12,
  cryotimerPeriod_8k = 13,
  cryotimerPeriod_16k = 14,
  cryotimerPeriod_32k = 15,
  cryotimerPeriod_64k = 16,
  cryotimerPeriod_128k = 17,
  cryotimerPeriod_256k = 18,
  cryotimerPeriod_512k = 19,
  cryotimerPeriod_1m = 20,
  cryotimerPeriod_2m = 21,
  cryotimerPeriod_4m = 22,
  cryotimerPeriod_8m = 23,
  cryotimerPeriod_16m = 24,
  cryotimerPeriod_32m = 25,
  cryotimerPeriod_64m = 26,
  cryotimerPeriod_128m = 27,
  cryotimerPeriod_256m = 28,
  cryotimerPeriod_512m = 29,
  cryotimerPeriod_1024m = 30,
  cryotimerPeriod_2048m = 31,
  cryotimerPeriod_4096m = 32
}
 
enum  CRYOTIMER_Presc_TypeDef {
  cryotimerPresc_1 = _CRYOTIMER_CTRL_PRESC_DIV1,
  cryotimerPresc_2 = _CRYOTIMER_CTRL_PRESC_DIV2,
  cryotimerPresc_4 = _CRYOTIMER_CTRL_PRESC_DIV4,
  cryotimerPresc_8 = _CRYOTIMER_CTRL_PRESC_DIV8,
  cryotimerPresc_16 = _CRYOTIMER_CTRL_PRESC_DIV16,
  cryotimerPresc_32 = _CRYOTIMER_CTRL_PRESC_DIV32,
  cryotimerPresc_64 = _CRYOTIMER_CTRL_PRESC_DIV64,
  cryotimerPresc_128 = _CRYOTIMER_CTRL_PRESC_DIV128
}
 

Functions

__STATIC_INLINE uint32_t CRYOTIMER_CounterGet (void)
 Get the CRYOTIMER counter value. More...
 
__STATIC_INLINE void CRYOTIMER_EM4WakeupEnable (bool enable)
 Enable/disable EM4 wakeup capability. More...
 
__STATIC_INLINE void CRYOTIMER_Enable (bool enable)
 Enable/disable the CRYOTIMER. More...
 
void CRYOTIMER_Init (const CRYOTIMER_Init_TypeDef *init)
 Initialize the CRYOTIMER. More...
 
__STATIC_INLINE void CRYOTIMER_IntClear (uint32_t flags)
 Clear the CRYOTIMER period interrupt. More...
 
__STATIC_INLINE void CRYOTIMER_IntDisable (uint32_t flags)
 Disable one or more CRYOTIMER interrupts. More...
 
__STATIC_INLINE void CRYOTIMER_IntEnable (uint32_t flags)
 Enable one or more CRYOTIMER interrupts. More...
 
__STATIC_INLINE uint32_t CRYOTIMER_IntGet (void)
 Get the CRYOTIMER interrupt flag. More...
 
__STATIC_INLINE uint32_t CRYOTIMER_IntGetEnabled (void)
 Get enabled and pending CRYOTIMER interrupt flags. Useful for handling more interrupt sources in the same interrupt handler. More...
 
__STATIC_INLINE void CRYOTIMER_IntSet (uint32_t flags)
 Set the CRYOTIMER period interrupt flag. More...
 
__STATIC_INLINE uint32_t CRYOTIMER_PeriodGet (void)
 Get the CRYOTIMER period select value. More...
 
__STATIC_INLINE void CRYOTIMER_PeriodSet (uint32_t period)
 Set the CRYOTIMER period select. More...