Collaboration diagram for KPP Register Masks:

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 23472 of file MIMXRT1052.h.

◆ KPP_KDDR_KCDD_MASK

#define KPP_KDDR_KCDD_MASK   (0xFF00U)

Definition at line 23466 of file MIMXRT1052.h.

◆ KPP_KDDR_KCDD_SHIFT

#define KPP_KDDR_KCDD_SHIFT   (8U)

Definition at line 23467 of file MIMXRT1052.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 23465 of file MIMXRT1052.h.

◆ KPP_KDDR_KRDD_MASK

#define KPP_KDDR_KRDD_MASK   (0xFFU)

Definition at line 23459 of file MIMXRT1052.h.

◆ KPP_KDDR_KRDD_SHIFT

#define KPP_KDDR_KRDD_SHIFT   (0U)

Definition at line 23460 of file MIMXRT1052.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 23408 of file MIMXRT1052.h.

◆ KPP_KPCR_KCO_MASK

#define KPP_KPCR_KCO_MASK   (0xFF00U)

Definition at line 23402 of file MIMXRT1052.h.

◆ KPP_KPCR_KCO_SHIFT

#define KPP_KPCR_KCO_SHIFT   (8U)

Definition at line 23403 of file MIMXRT1052.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 23401 of file MIMXRT1052.h.

◆ KPP_KPCR_KRE_MASK

#define KPP_KPCR_KRE_MASK   (0xFFU)

Definition at line 23395 of file MIMXRT1052.h.

◆ KPP_KPCR_KRE_SHIFT

#define KPP_KPCR_KRE_SHIFT   (0U)

Definition at line 23396 of file MIMXRT1052.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 23482 of file MIMXRT1052.h.

◆ KPP_KPDR_KCD_MASK

#define KPP_KPDR_KCD_MASK   (0xFF00U)

Definition at line 23480 of file MIMXRT1052.h.

◆ KPP_KPDR_KCD_SHIFT

#define KPP_KPDR_KCD_SHIFT   (8U)

Definition at line 23481 of file MIMXRT1052.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 23479 of file MIMXRT1052.h.

◆ KPP_KPDR_KRD_MASK

#define KPP_KPDR_KRD_MASK   (0xFFU)

Definition at line 23477 of file MIMXRT1052.h.

◆ KPP_KPDR_KRD_SHIFT

#define KPP_KPDR_KRD_SHIFT   (0U)

Definition at line 23478 of file MIMXRT1052.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 23447 of file MIMXRT1052.h.

◆ KPP_KPSR_KDIE_MASK

#define KPP_KPSR_KDIE_MASK   (0x100U)

Definition at line 23441 of file MIMXRT1052.h.

◆ KPP_KPSR_KDIE_SHIFT

#define KPP_KPSR_KDIE_SHIFT   (8U)

Definition at line 23442 of file MIMXRT1052.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 23433 of file MIMXRT1052.h.

◆ KPP_KPSR_KDSC_MASK

#define KPP_KPSR_KDSC_MASK   (0x4U)

Definition at line 23427 of file MIMXRT1052.h.

◆ KPP_KPSR_KDSC_SHIFT

#define KPP_KPSR_KDSC_SHIFT   (2U)

Definition at line 23428 of file MIMXRT1052.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 23419 of file MIMXRT1052.h.

◆ KPP_KPSR_KPKD_MASK

#define KPP_KPSR_KPKD_MASK   (0x1U)

Definition at line 23413 of file MIMXRT1052.h.

◆ KPP_KPSR_KPKD_SHIFT

#define KPP_KPSR_KPKD_SHIFT   (0U)

Definition at line 23414 of file MIMXRT1052.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 23426 of file MIMXRT1052.h.

◆ KPP_KPSR_KPKR_MASK

#define KPP_KPSR_KPKR_MASK   (0x2U)

Definition at line 23420 of file MIMXRT1052.h.

◆ KPP_KPSR_KPKR_SHIFT

#define KPP_KPSR_KPKR_SHIFT   (1U)

Definition at line 23421 of file MIMXRT1052.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 23454 of file MIMXRT1052.h.

◆ KPP_KPSR_KRIE_MASK

#define KPP_KPSR_KRIE_MASK   (0x200U)

Definition at line 23448 of file MIMXRT1052.h.

◆ KPP_KPSR_KRIE_SHIFT

#define KPP_KPSR_KRIE_SHIFT   (9U)

Definition at line 23449 of file MIMXRT1052.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 23440 of file MIMXRT1052.h.

◆ KPP_KPSR_KRSS_MASK

#define KPP_KPSR_KRSS_MASK   (0x8U)

Definition at line 23434 of file MIMXRT1052.h.

◆ KPP_KPSR_KRSS_SHIFT

#define KPP_KPSR_KRSS_SHIFT   (3U)

Definition at line 23435 of file MIMXRT1052.h.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:10