1 //------------------------------------------------------------------------------
2 // Copyright 2012 (c) Silicon Laboratories Inc.
3 //
4 // SPDX-License-Identifier: Zlib
5 //
6 // This siHAL software is provided 'as-is', without any express or implied
7 // warranty. In no event will the authors be held liable for any damages
8 // arising from the use of this software.
9 //
10 // Permission is granted to anyone to use this software for any purpose,
11 // including commercial applications, and to alter it and redistribute it
12 // freely, subject to the following restrictions:
13 //
14 // 1. The origin of this software must not be misrepresented; you must not
15 //    claim that you wrote the original software. If you use this software
16 //    in a product, an acknowledgment in the product documentation would be
17 //    appreciated but is not required.
18 // 2. Altered source versions must be plainly marked as such, and must not be
19 //    misrepresented as being the original software.
20 // 3. This notice may not be removed or altered from any source distribution.
21 //------------------------------------------------------------------------------
22 //
23 // This file applies to the SIM3C1XX_PBHD_A module
24 //
25 // Version: 1
26 
27 #ifndef __SI32_PBHD_A_SUPPORT_H__
28 #define __SI32_PBHD_A_SUPPORT_H__
29 
30 #include <stdint.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 //-----------------------------------------------------------------------------
37 // Define the PBHD Slew Enum type
38 
39 typedef enum SI32_PBHD_A_Slew_Enum
40 {
41    SI32_PBHD_A_SLEW_FASTEST = 0,
42    SI32_PBHD_A_SLEW_FASTER  = 1,
43    SI32_PBHD_A_SLEW_SLOWER  = 2,
44    SI32_PBHD_A_SLEW_SLOWEST = 3
45 } SI32_PBHD_A_Slew_Enum_Type;
46 
47 //-----------------------------------------------------------------------------
48 // Define the PBHD Function Enum type
49 
50 typedef enum SI32_PBHD_A_Function_Enum
51 {
52    SI32_PBHD_A_FUNCTION_GPIO    = 0,
53    SI32_PBHD_A_FUNCTION_PMLS    = 1,
54    SI32_PBHD_A_FUNCTION_EPCA    = 2,
55    SI32_PBHD_A_FUNCTION_UART    = 3,
56    SI32_PBHD_A_FUNCTION_LPTIMER = 4
57 } SI32_PBHD_A_Function_Enum_Type;
58 
59 //-----------------------------------------------------------------------------
60 // Define the PBHD Safe State Enum type
61 
62 typedef enum SI32_PBHD_A_Safe_State_Enum
63 {
64    SI32_PBHD_A_SAFE_STATE_HIZ    = 0,
65    SI32_PBHD_A_SAFE_STATE_HIGH   = 1,
66    SI32_PBHD_A_SAFE_STATE_LOW    = 2,
67    SI32_PBHD_A_SAFE_STATE_IGNORE = 3
68 } SI32_PBHD_A_Safe_State_Enum_Type;
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif // __SI32_PBHD_A_SUPPORT_H__
75 
76 //-eof--------------------------------------------------------------------------
77