![]() |
Energy Micro IEC60355 Library Example Project 1.0 (internal use only!) GCC-Version
Example project demonstrating POST and BIST library functions
|
global types and definitions More...
#include <stdint.h>#include <stdbool.h>

Go to the source code of this file.
Data Structures | |
| struct | IEC60335_CPUreg_struct |
| struct | ClkTest_struct |
| struct | IEC60335_IRQ_Test_t |
| Structure for interrupt test configuration. More... | |
| struct | IRQTestData_t |
| type structure for interrupt testing. More... | |
| struct | _Data |
| struct | IEC60335_FlashSign |
Defines | |
| #define | _VAL_A 0x01234567 |
| #define | _VAL_B 0x12345678 |
| #define | _VAL_C 0x23456789 |
| #define | _VAL_D 0x3456789A |
| #define | _VAL_E 0x456789AB |
| #define | _VAL_F 0x56789ABC |
| #define | _VAL_G 0x6789ABCD |
| #define | MIN(a, b) ((a < b) ? a : b) |
| #define | MAX(a, b) ((a > b) ? a : b) |
| #define | CUT(a, b, c) (MAX(a, MIN(b, c))) |
| #define | IsInRange(a, b, c) ((CUT(a, b, c) == b) ? true : false) |
Typedefs | |
| typedef enum testResult_enum | testResult_t |
| typedef enum testState_enum | type_testState_t |
| typedef enum testStart_enum | type_testStart_t |
| typedef struct ClkTest_struct | ClockTest_t |
| typedef enum _ReturnValues | IEC60335_B_PCTest_ReturnValues |
| typedef struct _Data | Data_t |
| typedef IEC60335_B_PCTest_ReturnValues(* | Exec_t )(Data_t *data) |
| typedef struct IEC60335_FlashSign | FlashCRC_t |
Enumerations | |
| enum | testResult_enum { IEC60335_testFailed = 0, IEC60335_testPassed = 1, IEC60335_testInProgress = 2 } |
| enum | testState_enum { IEC60335_stateDone = 0, IEC60335_statePending = 1, IEC60335_stateInProgress = 2 } |
| enum | testStart_enum { IEC60335_stop = 0, IEC60335_start = 1 } |
| enum | _ReturnValues { VAL_A = _VAL_A, VAL_B = _VAL_B, VAL_C = _VAL_C, VAL_D = _VAL_D, VAL_E = _VAL_E, VAL_F = _VAL_F, VAL_G = _VAL_G } |
global types and definitions
(C) Copyright 2010 Energy Micro AS, http://www.energymicro.com
This source code is the property of Energy Micro AS. The source and compiled code may only be used on Energy Micro "EFM32" microcontrollers.
This copyright notice may not be removed from the source code nor changed.
DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no obligation to support this Software. Energy Micro AS 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.
Energy Micro AS 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 iec60335_class_b_typedef.h.
| #define _VAL_A 0x01234567 |
values fixed to 32 bit regardless of compiler
Definition at line 77 of file iec60335_class_b_typedef.h.
| #define _VAL_B 0x12345678 |
Definition at line 78 of file iec60335_class_b_typedef.h.
| #define _VAL_C 0x23456789 |
Definition at line 79 of file iec60335_class_b_typedef.h.
| #define _VAL_D 0x3456789A |
Definition at line 80 of file iec60335_class_b_typedef.h.
| #define _VAL_E 0x456789AB |
Definition at line 81 of file iec60335_class_b_typedef.h.
| #define _VAL_F 0x56789ABC |
Definition at line 82 of file iec60335_class_b_typedef.h.
| #define _VAL_G 0x6789ABCD |
Definition at line 83 of file iec60335_class_b_typedef.h.
| #define CUT | ( | a, | |
| b, | |||
| c | |||
| ) | (MAX(a, MIN(b, c))) |
macro returning a (a>b>c),b (a<b<c), c(a<c<b)
Definition at line 142 of file iec60335_class_b_typedef.h.
| #define IsInRange | ( | a, | |
| b, | |||
| c | |||
| ) | ((CUT(a, b, c) == b) ? true : false) |
macro returning true if a<b<c
Definition at line 143 of file iec60335_class_b_typedef.h.
| #define MAX | ( | a, | |
| b | |||
| ) | ((a > b) ? a : b) |
macro returning biggest input
Definition at line 141 of file iec60335_class_b_typedef.h.
| #define MIN | ( | a, | |
| b | |||
| ) | ((a < b) ? a : b) |
macro returning smallest input
Definition at line 140 of file iec60335_class_b_typedef.h.
| typedef struct ClkTest_struct ClockTest_t |
Definition at line 125 of file iec60335_class_b_typedef.h.
| typedef IEC60335_B_PCTest_ReturnValues(* Exec_t)(Data_t *data) |
Definition at line 127 of file iec60335_class_b_typedef.h.
| typedef struct IEC60335_FlashSign FlashCRC_t |
| typedef enum _ReturnValues IEC60335_B_PCTest_ReturnValues |
Definition at line 95 of file iec60335_class_b_typedef.h.
| typedef enum testResult_enum testResult_t |
| typedef enum testStart_enum type_testStart_t |
| typedef enum testState_enum type_testState_t |
| enum _ReturnValues |
| enum testResult_enum |
| IEC60335_testFailed |
test result failed replacement |
| IEC60335_testPassed |
test result passed replacement |
| IEC60335_testInProgress |
test is still in progress replacement |
Definition at line 39 of file iec60335_class_b_typedef.h.
{
IEC60335_testFailed = 0,
IEC60335_testPassed = 1,
IEC60335_testInProgress = 2
} testResult_t;
| enum testStart_enum |
Definition at line 53 of file iec60335_class_b_typedef.h.
{
IEC60335_stop = 0,
IEC60335_start = 1
} type_testStart_t;
| enum testState_enum |
| IEC60335_stateDone |
test is done replacement |
| IEC60335_statePending |
test is pending replacement |
| IEC60335_stateInProgress |
test is still in progress replacement |
Definition at line 46 of file iec60335_class_b_typedef.h.
{
IEC60335_stateDone = 0,
IEC60335_statePending = 1,
IEC60335_stateInProgress = 2
} type_testState_t;