EFR32 Mighty Gecko 1 Software Documentation
efr32mg1-doc-5.1.2
|
TEMPDRV API definition.
(C) Copyright 2014 Silicon Labs, 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:
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 tempdrv.h.
Go to the source code of this file.
Macros | |
#define | ECODE_EMDRV_TEMPDRV_BAD_LIMIT (ECODE_EMDRV_TEMPDRV_BASE | 0x00000003) |
Temperature mismatch with limit. | |
#define | ECODE_EMDRV_TEMPDRV_DUP_TEMP (ECODE_EMDRV_TEMPDRV_BASE | 0x00000008) |
Requested temperature is a duplicate. | |
#define | ECODE_EMDRV_TEMPDRV_NO_CALLBACK (ECODE_EMDRV_TEMPDRV_BASE | 0x00000004) |
Can't find callback. | |
#define | ECODE_EMDRV_TEMPDRV_NO_INIT (ECODE_EMDRV_TEMPDRV_BASE | 0x00000001) |
Function requires prior initialization. | |
#define | ECODE_EMDRV_TEMPDRV_NO_SPACE (ECODE_EMDRV_TEMPDRV_BASE | 0x00000005) |
No more space to register. | |
#define | ECODE_EMDRV_TEMPDRV_OK (ECODE_OK) |
Success return value. | |
#define | ECODE_EMDRV_TEMPDRV_PARAM_ERROR (ECODE_EMDRV_TEMPDRV_BASE | 0x00000002) |
Illegal input parameter. | |
#define | ECODE_EMDRV_TEMPDRV_TEMP_OVER (ECODE_EMDRV_TEMPDRV_BASE | 0x00000007) |
Requested temperature above measurable range. | |
#define | ECODE_EMDRV_TEMPDRV_TEMP_UNDER (ECODE_EMDRV_TEMPDRV_BASE | 0x00000006) |
Requested temperature below measurable range. | |
Typedefs | |
typedef void(* | TEMPDRV_Callback_t) (int8_t temp, TEMPDRV_LimitType_t limit) |
TEMPDRV temperature limit callback function. More... | |
typedef enum TEMPDRV_LimitType | TEMPDRV_LimitType_t |
Enumerations | |
enum | TEMPDRV_LimitType { TEMPDRV_LIMIT_LOW = 0, TEMPDRV_LIMIT_HIGH = 1 } |
Functions | |
Ecode_t | TEMPDRV_DeInit (void) |
De-initialize the TEMP driver. More... | |
Ecode_t | TEMPDRV_Enable (bool enable) |
Enable or disable the TEMP driver. More... | |
uint8_t | TEMPDRV_GetActiveCallbacks (TEMPDRV_LimitType_t limit) |
Get the number of active callbacks for a limit. More... | |
int8_t | TEMPDRV_GetTemp (void) |
Get the current temperature. More... | |
Ecode_t | TEMPDRV_Init (void) |
Initialize the TEMP driver. More... | |
void | TEMPDRV_IRQHandler (void) |
TEMPDRV IRQ Handler. More... | |
Ecode_t | TEMPDRV_RegisterCallback (int8_t temp, TEMPDRV_LimitType_t limit, TEMPDRV_Callback_t callback) |
Register a callback in the TEMP driver. More... | |
Ecode_t | TEMPDRV_UnregisterCallback (TEMPDRV_Callback_t callback) |
Unregister a callback in the TEMP driver. More... | |