7#ifndef CHIP_E90553C9_D130_4FFC_BA1B_364E7D24DAD1
8#define CHIP_E90553C9_D130_4FFC_BA1B_364E7D24DAD1
19#include "./DriveStrength.h"
20#include "./DriveStrengthDouble.h"
21#include "./InputBuffer.h"
22#include "./Inverted.h"
26#include "./OpenDrain.h"
27#include "./PassiveFilter.h"
29#include "./PullResistor.h"
31#include "./Register.h"
34#include "./VoltageRange.h"
41 extern Register &PORT0;
42 extern Register &PORT1;
43 extern Register &PORT2;
44 extern Register &PORT3;
45 extern Register *
const PORT[4];
112 uint32 verid = base.
verid;
113 result.
feature =
static_cast<uint16
>(verid);
155 uint32 addr =
reinterpret_cast<uint32
>(&base.
pcr[pin]);
157 *
reinterpret_cast<volatile uint16 *
>(addr) = +config;
184 uint16 pcrl = +config;
186 if (0U != (mask & 0xffffU))
187 base.
gpclr = ((mask & 0xffffU) << 16) | pcrl;
189 if (0U != (mask >> 16))
190 base.
gpchr = (mask & 0xffff0000U) | pcrl;
737 static inline constexpr uint32
PCR_PS(uint32 value) {
749 static inline constexpr uint32
PCR_PE(uint32 value) {
761 static inline constexpr uint32
PCR_PV(uint32 value) {
773 static inline constexpr uint32
PCR_SRE(uint32 value) {
785 static inline constexpr uint32
PCR_PFE(uint32 value) {
797 static inline constexpr uint32
PCR_ODE(uint32 value) {
809 static inline constexpr uint32
PCR_DSE(uint32 value) {
821 static inline constexpr uint32
PCR_DSE1(uint32 value) {
857 static inline constexpr uint32
PCR_MUX(uint32 value) {
868 static inline constexpr uint32
PCR_IBE(uint32 value) {
880 static inline constexpr uint32
PCR_INV(uint32 value) {
892 static inline constexpr uint32
PCR_LK(uint32 value) {
static Version setVersionInfo(Register &base)
Get PORT version information.
Definition Port.h:110
static constexpr uint32 PCR_PFE(uint32 value)
PCR - PFE.
Definition Port.h:785
static constexpr uint32 GPCLR_GPWE14(uint32 value)
GPCLR - GPWE14.
Definition Port.h:470
static constexpr uint32 GPCHR_GPWE28(uint32 value)
GPCHR - GPWE28.
Definition Port.h:646
static constexpr uint32 PCR_SRE(uint32 value)
PCR - SRE.
Definition Port.h:773
static constexpr uint32 CALIB1_NCAL(uint32 value)
CALIB1 - NCAL.
Definition Port.h:718
static constexpr uint32 PCR_PV(uint32 value)
PCR - PV.
Definition Port.h:761
static constexpr uint32 GPCHR_GPWE29(uint32 value)
GPCHR - GPWE29.
Definition Port.h:658
static void setPinPullValue(Register &base, uint32 pin, uint8 value)
Configures the port pin pull value.
Definition Port.h:255
static constexpr uint32 GPCLR_GPWD(uint32 value)
GPCLR - GPWD.
Definition Port.h:290
static constexpr uint32 CALIB1_PCAL(uint32 value)
CALIB1 - PCAL.
Definition Port.h:725
static constexpr uint32 GPCLR_GPWE2(uint32 value)
GPCLR - GPWE2.
Definition Port.h:326
static constexpr uint32 GPCLR_GPWE5(uint32 value)
GPCLR - GPWE5.
Definition Port.h:362
static constexpr uint32 PCR_PS(uint32 value)
PCR - PS.
Definition Port.h:737
static constexpr uint32 GPCLR_GPWE11(uint32 value)
GPCLR - GPWE11.
Definition Port.h:434
static constexpr uint32 GPCHR_GPWE20(uint32 value)
GPCHR - GPWE20.
Definition Port.h:550
static constexpr uint32 CALIB0_NCAL(uint32 value)
CALIB0 - NCAL.
Definition Port.h:702
static constexpr uint32 GPCLR_GPWE8(uint32 value)
GPCLR - GPWE8.
Definition Port.h:398
static constexpr uint32 PCR_DSE(uint32 value)
PCR - DSE.
Definition Port.h:809
static constexpr uint32 GPCHR_GPWE25(uint32 value)
GPCHR - GPWE25.
Definition Port.h:610
static constexpr uint32 VERID_MINOR(uint32 value)
VERID - MINOR.
Definition Port.h:274
static constexpr uint32 GPCHR_GPWE22(uint32 value)
GPCHR - GPWE22.
Definition Port.h:574
static constexpr uint32 VERID_MAJOR(uint32 value)
VERID - MAJOR.
Definition Port.h:282
static constexpr uint32 GPCLR_GPWE9(uint32 value)
GPCLR - GPWE9.
Definition Port.h:410
static constexpr uint32 GPCHR_GPWE19(uint32 value)
GPCHR - GPWE19.
Definition Port.h:538
static constexpr uint32 PCR_MUX(uint32 value)
PCR - MUX.
Definition Port.h:857
static constexpr uint32 GPCHR_GPWE26(uint32 value)
GPCHR - GPWE26.
Definition Port.h:622
static void enablePinDoubleDriveStrength(Register &base, uint32 pin, bool enable)
Enables the port pin double drive strength.
Definition Port.h:241
static constexpr uint32 GPCHR_GPWE24(uint32 value)
GPCHR - GPWE24.
Definition Port.h:598
static constexpr uint32 GPCLR_GPWE12(uint32 value)
GPCLR - GPWE12.
Definition Port.h:446
static constexpr uint32 GPCLR_GPWE0(uint32 value)
GPCLR - GPWE0.
Definition Port.h:302
static constexpr uint32 GPCLR_GPWE7(uint32 value)
GPCLR - GPWE7.
Definition Port.h:386
Port(void)
Construct a new object.
static constexpr uint32 PCR_LK(uint32 value)
PCR - LK.
Definition Port.h:892
static void setPinConfig(Register &base, uint32 pin, const Config &config)
Sets the port PCR register.
Definition Port.h:154
static constexpr uint32 GPCHR_GPWE21(uint32 value)
GPCHR - GPWE21.
Definition Port.h:562
static constexpr uint32 GPCHR_GPWE30(uint32 value)
GPCHR - GPWE30.
Definition Port.h:670
static constexpr uint32 GPCHR_GPWE27(uint32 value)
GPCHR - GPWE27.
Definition Port.h:634
static constexpr uint32 PCR_ODE(uint32 value)
PCR - ODE.
Definition Port.h:797
static constexpr uint32 GPCLR_GPWE1(uint32 value)
GPCLR - GPWE1.
Definition Port.h:314
static constexpr uint32 PCR_PE(uint32 value)
PCR - PE.
Definition Port.h:749
static void setPinDriveStrength(Register &base, uint32 pin, uint8 strength)
Configures the port pin drive strength.
Definition Port.h:229
static constexpr uint32 GPCHR_GPWE31(uint32 value)
GPCHR - GPWE31.
Definition Port.h:682
static constexpr uint32 PCR_IBE(uint32 value)
PCR - IBE.
Definition Port.h:868
static constexpr uint32 CALIB0_PCAL(uint32 value)
CALIB0 - PCAL.
Definition Port.h:710
static constexpr uint32 GPCLR_GPWE3(uint32 value)
GPCLR - GPWE3.
Definition Port.h:338
static constexpr uint32 GPCHR_GPWE23(uint32 value)
GPCHR - GPWE23.
Definition Port.h:586
virtual ~Port(void) override
Destroy the object.
static constexpr uint32 GPCHR_GPWE16(uint32 value)
GPCHR - GPWE16.
Definition Port.h:502
static constexpr uint32 PCR_DSE1(uint32 value)
PCR - DSE1.
Definition Port.h:821
static void setPinMux(Register &base, uint32 pin, Mux mux)
Configures the pin muxing.
Definition Port.h:215
static void setMultiplePinsConfig(Register &base, uint32 mask, const Config &config)
Sets the port PCR register for multiple pins.
Definition Port.h:183
static constexpr uint32 CONFIG_RANGE(uint32 value)
CONFIG - RANGE.
Definition Port.h:694
static constexpr uint32 VERID_FEATURE(uint32 value)
VERID - FEATURE.
Definition Port.h:266
static constexpr uint32 GPCLR_GPWE6(uint32 value)
GPCLR - GPWE6.
Definition Port.h:374
static constexpr uint32 GPCLR_GPWE13(uint32 value)
GPCLR - GPWE13.
Definition Port.h:458
static constexpr uint32 PCR_INV(uint32 value)
PCR - INV.
Definition Port.h:880
static constexpr uint32 GPCHR_GPWE17(uint32 value)
GPCHR - GPWE17.
Definition Port.h:514
static constexpr uint32 GPCHR_GPWE18(uint32 value)
GPCHR - GPWE18.
Definition Port.h:526
static constexpr uint32 GPCLR_GPWE4(uint32 value)
GPCLR - GPWE4.
Definition Port.h:350
static constexpr uint32 GPCLR_GPWE15(uint32 value)
GPCLR - GPWE15.
Definition Port.h:482
static constexpr uint32 GPCHR_GPWD(uint32 value)
GPCHR - GPWD.
Definition Port.h:490
static void secletPortVoltageRange(Register &base, VoltageRange range)
Get PORT version information.
Definition Port.h:128
static constexpr uint32 GPCLR_GPWE10(uint32 value)
GPCLR - GPWE10.
Definition Port.h:422
Mux
Definition chip/src/port/Mux.h:33
VoltageRange
Definition VoltageRange.h:33
@ GPCLR_GPWE13
GPCLR - GPWE13.
@ GPCLR_GPWE15
GPCLR - GPWE15.
@ GPCLR_GPWE8
GPCLR - GPWE8.
@ GPCLR_GPWE3
GPCLR - GPWE3.
@ VERID_MINOR
VERID - MINOR.
@ GPCHR_GPWE25
GPCHR - GPWE25.
@ GPCHR_GPWE23
GPCHR - GPWE23.
@ GPCLR_GPWE5
GPCLR - GPWE5.
@ GPCHR_GPWE24
GPCHR - GPWE24.
@ GPCHR_GPWE22
GPCHR - GPWE22.
@ CALIB1_NCAL
CALIB1 - NCAL.
@ GPCLR_GPWE10
GPCLR - GPWE10.
@ GPCHR_GPWE30
GPCHR - GPWE30.
@ GPCHR_GPWD
GPCHR - GPWD.
@ CALIB0_PCAL
CALIB0 - PCAL.
@ GPCHR_GPWE20
GPCHR - GPWE20.
@ GPCHR_GPWE31
GPCHR - GPWE31.
@ GPCLR_GPWE2
GPCLR - GPWE2.
@ GPCLR_GPWE1
GPCLR - GPWE1.
@ VERID_FEATURE
VERID - FEATURE.
@ GPCLR_GPWE11
GPCLR - GPWE11.
@ GPCLR_GPWE7
GPCLR - GPWE7.
@ GPCLR_GPWE12
GPCLR - GPWE12.
@ GPCLR_GPWE14
GPCLR - GPWE14.
@ GPCHR_GPWE28
GPCHR - GPWE28.
@ GPCHR_GPWE27
GPCHR - GPWE27.
@ GPCHR_GPWE16
GPCHR - GPWE16.
@ GPCHR_GPWE19
GPCHR - GPWE19.
@ CALIB0_NCAL
CALIB0 - NCAL.
@ VERID_MAJOR
VERID - MAJOR.
@ GPCLR_GPWD
GPCLR - GPWD.
@ GPCHR_GPWE18
GPCHR - GPWE18.
@ GPCLR_GPWE0
GPCLR - GPWE0.
@ CALIB1_PCAL
CALIB1 - PCAL.
@ GPCHR_GPWE17
GPCHR - GPWE17.
@ GPCLR_GPWE9
GPCLR - GPWE9.
@ GPCLR_GPWE4
GPCLR - GPWE4.
@ GPCHR_GPWE26
GPCHR - GPWE26.
@ CONFIG_RANGE
CONFIG - RANGE.
@ GPCHR_GPWE29
GPCHR - GPWE29.
@ GPCHR_GPWE21
GPCHR - GPWE21.
@ GPCLR_GPWE6
GPCLR - GPWE6.
@ GPCLR_GPWE13
GPCLR - GPWE13.
@ GPCLR_GPWE15
GPCLR - GPWE15.
@ GPCLR_GPWE8
GPCLR - GPWE8.
@ GPCLR_GPWE3
GPCLR - GPWE3.
@ VERID_MINOR
VERID - MINOR.
@ GPCHR_GPWE25
GPCHR - GPWE25.
@ GPCHR_GPWE23
GPCHR - GPWE23.
@ GPCLR_GPWE5
GPCLR - GPWE5.
@ GPCHR_GPWE24
GPCHR - GPWE24.
@ GPCHR_GPWE22
GPCHR - GPWE22.
@ CALIB1_NCAL
CALIB1 - NCAL.
@ GPCLR_GPWE10
GPCLR - GPWE10.
@ GPCHR_GPWE30
GPCHR - GPWE30.
@ GPCHR_GPWD
GPCHR - GPWD.
@ CALIB0_PCAL
CALIB0 - PCAL.
@ GPCHR_GPWE20
GPCHR - GPWE20.
@ GPCHR_GPWE31
GPCHR - GPWE31.
@ GPCLR_GPWE2
GPCLR - GPWE2.
@ GPCLR_GPWE1
GPCLR - GPWE1.
@ VERID_FEATURE
VERID - FEATURE.
@ GPCLR_GPWE11
GPCLR - GPWE11.
@ GPCLR_GPWE7
GPCLR - GPWE7.
@ GPCLR_GPWE12
GPCLR - GPWE12.
@ GPCLR_GPWE14
GPCLR - GPWE14.
@ GPCHR_GPWE28
GPCHR - GPWE28.
@ GPCHR_GPWE27
GPCHR - GPWE27.
@ GPCHR_GPWE16
GPCHR - GPWE16.
@ GPCHR_GPWE19
GPCHR - GPWE19.
@ CALIB0_NCAL
CALIB0 - NCAL.
@ VERID_MAJOR
VERID - MAJOR.
@ GPCLR_GPWD
GPCLR - GPWD.
@ GPCHR_GPWE18
GPCHR - GPWE18.
@ GPCLR_GPWE0
GPCLR - GPWE0.
@ CALIB1_PCAL
CALIB1 - PCAL.
@ GPCHR_GPWE17
GPCHR - GPWE17.
@ GPCLR_GPWE9
GPCLR - GPWE9.
@ GPCLR_GPWE4
GPCLR - GPWE4.
@ GPCHR_GPWE26
GPCHR - GPWE26.
@ CONFIG_RANGE
CONFIG - RANGE.
@ GPCHR_GPWE29
GPCHR - GPWE29.
@ GPCHR_GPWE21
GPCHR - GPWE21.
@ GPCLR_GPWE6
GPCLR - GPWE6.
Definition port/Register.h:29
__I uint32 verid
Definition port/Register.h:30
__IO uint32 config
Definition port/Register.h:35
__IO uint32 pcr[32]
Definition port/Register.h:40
__O uint32 gpclr
Definition port/Register.h:32
__O uint32 gpchr
Definition port/Register.h:33
uint16 feature
Definition Version.h:30
uint8 minor
Definition Version.h:31
uint8 major
Definition Version.h:32