Callisto4Bootloader: KPP Register Masks

Callisto4Bootloader

KPP Register Masks
Mapping Information » Edma_request » Iomuxc_pads » Device Peripheral Access Layer » KPP Peripheral Access Layer

## KPCR - Keypad Control Register

#define | KPP_KPCR_KRE_MASK (0xFFU)
#define | KPP_KPCR_KRE_SHIFT (0U)
#define | KPP_KPCR_KRE(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPCR_KRE_SHIFT)) & KPP_KPCR_KRE_MASK)
#define | KPP_KPCR_KCO_MASK (0xFF00U)
#define | KPP_KPCR_KCO_SHIFT (8U)
#define | KPP_KPCR_KCO(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPCR_KCO_SHIFT)) & KPP_KPCR_KCO_MASK)

## KPSR - Keypad Status Register

#define | KPP_KPSR_KPKD_MASK (0x1U)
#define | KPP_KPSR_KPKD_SHIFT (0U)
#define | KPP_KPSR_KPKD(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KPKD_SHIFT)) & KPP_KPSR_KPKD_MASK)
#define | KPP_KPSR_KPKR_MASK (0x2U)
#define | KPP_KPSR_KPKR_SHIFT (1U)
#define | KPP_KPSR_KPKR(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KPKR_SHIFT)) & KPP_KPSR_KPKR_MASK)
#define | KPP_KPSR_KDSC_MASK (0x4U)
#define | KPP_KPSR_KDSC_SHIFT (2U)
#define | KPP_KPSR_KDSC(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KDSC_SHIFT)) & KPP_KPSR_KDSC_MASK)
#define | KPP_KPSR_KRSS_MASK (0x8U)
#define | KPP_KPSR_KRSS_SHIFT (3U)
#define | KPP_KPSR_KRSS(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KRSS_SHIFT)) & KPP_KPSR_KRSS_MASK)
#define | KPP_KPSR_KDIE_MASK (0x100U)
#define | KPP_KPSR_KDIE_SHIFT (8U)
#define | KPP_KPSR_KDIE(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KDIE_SHIFT)) & KPP_KPSR_KDIE_MASK)
#define | KPP_KPSR_KRIE_MASK (0x200U)
#define | KPP_KPSR_KRIE_SHIFT (9U)
#define | KPP_KPSR_KRIE(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KRIE_SHIFT)) & KPP_KPSR_KRIE_MASK)

## KDDR - Keypad Data Direction Register

#define | KPP_KDDR_KRDD_MASK (0xFFU)
#define | KPP_KDDR_KRDD_SHIFT (0U)
#define | KPP_KDDR_KRDD(x) (((uint16_t)(((uint16_t)(x)) << KPP_KDDR_KRDD_SHIFT)) & KPP_KDDR_KRDD_MASK)
#define | KPP_KDDR_KCDD_MASK (0xFF00U)
#define | KPP_KDDR_KCDD_SHIFT (8U)
#define | KPP_KDDR_KCDD(x) (((uint16_t)(((uint16_t)(x)) << KPP_KDDR_KCDD_SHIFT)) & KPP_KDDR_KCDD_MASK)

## KPDR - Keypad Data Register

#define | KPP_KPDR_KRD_MASK (0xFFU)
#define | KPP_KPDR_KRD_SHIFT (0U)
#define | KPP_KPDR_KRD(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPDR_KRD_SHIFT)) & KPP_KPDR_KRD_MASK)
#define | KPP_KPDR_KCD_MASK (0xFF00U)
#define | KPP_KPDR_KCD_SHIFT (8U)
#define | KPP_KPDR_KCD(x) (((uint16_t)(((uint16_t)(x)) << KPP_KPDR_KCD_SHIFT)) & KPP_KPDR_KCD_MASK)

## Detailed Description

## Macro Definition Documentation

## ◆ KPP_KDDR_KCDD

#define KPP_KDDR_KCDD | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KDDR_KCDD_SHIFT)) & KPP_KDDR_KCDD_MASK)

KCDD 0b00000000..COLn pin is configured as an input. 0b00000001..COLn pin is configured as an output.

Definition at line 25070 of file MIMXRT1062.h.

## ◆ KPP_KDDR_KCDD_MASK

#define KPP_KDDR_KCDD_MASK (0xFF00U)

Definition at line 25064 of file MIMXRT1062.h.

## ◆ KPP_KDDR_KCDD_SHIFT

#define KPP_KDDR_KCDD_SHIFT (8U)

Definition at line 25065 of file MIMXRT1062.h.

## ◆ KPP_KDDR_KRDD

#define KPP_KDDR_KRDD | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KDDR_KRDD_SHIFT)) & KPP_KDDR_KRDD_MASK)

KRDD 0b00000000..ROWn pin configured as an input. 0b00000001..ROWn pin configured as an output.

Definition at line 25063 of file MIMXRT1062.h.

## ◆ KPP_KDDR_KRDD_MASK

#define KPP_KDDR_KRDD_MASK (0xFFU)

Definition at line 25057 of file MIMXRT1062.h.

## ◆ KPP_KDDR_KRDD_SHIFT

#define KPP_KDDR_KRDD_SHIFT (0U)

Definition at line 25058 of file MIMXRT1062.h.

## ◆ KPP_KPCR_KCO

#define KPP_KPCR_KCO | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPCR_KCO_SHIFT)) & KPP_KPCR_KCO_MASK)

KCO 0b00000000..Column strobe output is totem pole drive. 0b00000001..Column strobe output is open drain.

Definition at line 25006 of file MIMXRT1062.h.

## ◆ KPP_KPCR_KCO_MASK

#define KPP_KPCR_KCO_MASK (0xFF00U)

Definition at line 25000 of file MIMXRT1062.h.

## ◆ KPP_KPCR_KCO_SHIFT

#define KPP_KPCR_KCO_SHIFT (8U)

Definition at line 25001 of file MIMXRT1062.h.

## ◆ KPP_KPCR_KRE

#define KPP_KPCR_KRE | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPCR_KRE_SHIFT)) & KPP_KPCR_KRE_MASK)

KRE 0b00000000..Row is not included in the keypad key press detect. 0b00000001..Row is included in the keypad key press detect.

Definition at line 24999 of file MIMXRT1062.h.

## ◆ KPP_KPCR_KRE_MASK

#define KPP_KPCR_KRE_MASK (0xFFU)

Definition at line 24993 of file MIMXRT1062.h.

## ◆ KPP_KPCR_KRE_SHIFT

#define KPP_KPCR_KRE_SHIFT (0U)

Definition at line 24994 of file MIMXRT1062.h.

## ◆ KPP_KPDR_KCD

#define KPP_KPDR_KCD | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPDR_KCD_SHIFT)) & KPP_KPDR_KCD_MASK)

Definition at line 25080 of file MIMXRT1062.h.

## ◆ KPP_KPDR_KCD_MASK

#define KPP_KPDR_KCD_MASK (0xFF00U)

Definition at line 25078 of file MIMXRT1062.h.

## ◆ KPP_KPDR_KCD_SHIFT

#define KPP_KPDR_KCD_SHIFT (8U)

Definition at line 25079 of file MIMXRT1062.h.

## ◆ KPP_KPDR_KRD

#define KPP_KPDR_KRD | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPDR_KRD_SHIFT)) & KPP_KPDR_KRD_MASK)

Definition at line 25077 of file MIMXRT1062.h.

## ◆ KPP_KPDR_KRD_MASK

#define KPP_KPDR_KRD_MASK (0xFFU)

Definition at line 25075 of file MIMXRT1062.h.

## ◆ KPP_KPDR_KRD_SHIFT

#define KPP_KPDR_KRD_SHIFT (0U)

Definition at line 25076 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KDIE

#define KPP_KPSR_KDIE | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KDIE_SHIFT)) & KPP_KPSR_KDIE_MASK)

KDIE 0b0..No interrupt request is generated when KPKD is set. 0b1..An interrupt request is generated when KPKD is set.

Definition at line 25045 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KDIE_MASK

#define KPP_KPSR_KDIE_MASK (0x100U)

Definition at line 25039 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KDIE_SHIFT

#define KPP_KPSR_KDIE_SHIFT (8U)

Definition at line 25040 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KDSC

#define KPP_KPSR_KDSC | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KDSC_SHIFT)) & KPP_KPSR_KDSC_MASK)

KDSC 0b0..No effect 0b1..Set bits that clear the keypad depress synchronizer chain

Definition at line 25031 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KDSC_MASK

#define KPP_KPSR_KDSC_MASK (0x4U)

Definition at line 25025 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KDSC_SHIFT

#define KPP_KPSR_KDSC_SHIFT (2U)

Definition at line 25026 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KPKD

#define KPP_KPSR_KPKD | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KPKD_SHIFT)) & KPP_KPSR_KPKD_MASK)

KPKD 0b0..No key presses detected 0b1..A key has been depressed

Definition at line 25017 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KPKD_MASK

#define KPP_KPSR_KPKD_MASK (0x1U)

Definition at line 25011 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KPKD_SHIFT

#define KPP_KPSR_KPKD_SHIFT (0U)

Definition at line 25012 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KPKR

#define KPP_KPSR_KPKR | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KPKR_SHIFT)) & KPP_KPSR_KPKR_MASK)

KPKR 0b0..No key release detected 0b1..All keys have been released

Definition at line 25024 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KPKR_MASK

#define KPP_KPSR_KPKR_MASK (0x2U)

Definition at line 25018 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KPKR_SHIFT

#define KPP_KPSR_KPKR_SHIFT (1U)

Definition at line 25019 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KRIE

#define KPP_KPSR_KRIE | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KRIE_SHIFT)) & KPP_KPSR_KRIE_MASK)

KRIE 0b0..No interrupt request is generated when KPKR is set. 0b1..An interrupt request is generated when KPKR is set.

Definition at line 25052 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KRIE_MASK

#define KPP_KPSR_KRIE_MASK (0x200U)

Definition at line 25046 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KRIE_SHIFT

#define KPP_KPSR_KRIE_SHIFT (9U)

Definition at line 25047 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KRSS

#define KPP_KPSR_KRSS | ( |  | x | ) | (((uint16_t)(((uint16_t)(x)) << KPP_KPSR_KRSS_SHIFT)) & KPP_KPSR_KRSS_MASK)

KRSS 0b0..No effect 0b1..Set bits which sets keypad release synchronizer chain

Definition at line 25038 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KRSS_MASK

#define KPP_KPSR_KRSS_MASK (0x8U)

Definition at line 25032 of file MIMXRT1062.h.

## ◆ KPP_KPSR_KRSS_SHIFT

#define KPP_KPSR_KRSS_SHIFT (3U)

Definition at line 25033 of file MIMXRT1062.h.