00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. 00002 * 00003 * The information contained herein is confidential property of Nordic 00004 * Semiconductor ASA.Terms and conditions of usage are described in detail 00005 * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 00006 * 00007 * Licensees are granted free, non-transferable use of the information. NO 00008 * WARRENTY of ANY KIND is provided. This heading must NOT be removed from 00009 * the file. 00010 * 00011 * $LastChangedRevision: 133 $ 00012 */ 00013 00025 #ifndef __HAL_POF_H__ 00026 #define __HAL_POF_H__ 00027 00028 #include <stdint.h> 00029 #include <stdbool.h> 00030 00034 typedef enum 00035 { 00036 HAL_POF_THRESHOLD_2_1V = 0x00, 00037 HAL_POF_THRESHOLD_2_3V = 0x20, 00038 HAL_POF_THRESHOLD_2_5V = 0x40, 00039 HAL_POF_THRESHOLD_2_7V = 0x60 00040 } hal_pof_threshold_t; 00041 00046 void hal_pof_enable(bool enable); 00047 00056 void hal_pof_set_threshold(hal_pof_threshold_t threshold); 00057 00061 bool hal_pof_warning(void); 00062 00063 00064 #endif // __HAL_POF_H__ 00065