RTEMS 6.1-rc1

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)
 

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)
 

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 [1/3]

#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.

◆ KPP_KDDR_KCDD [2/3]

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

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

◆ KPP_KDDR_KCDD [3/3]

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

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

◆ KPP_KDDR_KRDD [1/3]

#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.

◆ KPP_KDDR_KRDD [2/3]

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

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

◆ KPP_KDDR_KRDD [3/3]

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

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

◆ KPP_KPCR_KCO [1/3]

#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.

◆ KPP_KPCR_KCO [2/3]

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

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

◆ KPP_KPCR_KCO [3/3]

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

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

◆ KPP_KPCR_KRE [1/3]

#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.

◆ KPP_KPCR_KRE [2/3]

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

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

◆ KPP_KPCR_KRE [3/3]

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

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

◆ KPP_KPDR_KCD [1/2]

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

KCD - KCD

◆ KPP_KPDR_KCD [2/2]

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

KCD - KCD

◆ KPP_KPDR_KRD [1/2]

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

KRD - KRD

◆ KPP_KPDR_KRD [2/2]

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

KRD - KRD

◆ KPP_KPSR_KDIE [1/3]

#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.

◆ KPP_KPSR_KDIE [2/3]

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

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

◆ KPP_KPSR_KDIE [3/3]

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

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

◆ KPP_KPSR_KDSC [1/3]

#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

◆ KPP_KPSR_KDSC [2/3]

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

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

◆ KPP_KPSR_KDSC [3/3]

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

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

◆ KPP_KPSR_KPKD [1/3]

#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

◆ KPP_KPSR_KPKD [2/3]

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

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

◆ KPP_KPSR_KPKD [3/3]

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

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

◆ KPP_KPSR_KPKR [1/3]

#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

◆ KPP_KPSR_KPKR [2/3]

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

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

◆ KPP_KPSR_KPKR [3/3]

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

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

◆ KPP_KPSR_KRIE [1/3]

#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.

◆ KPP_KPSR_KRIE [2/3]

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

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

◆ KPP_KPSR_KRIE [3/3]

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

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

◆ KPP_KPSR_KRSS [1/3]

#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

◆ KPP_KPSR_KRSS [2/3]

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

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

◆ KPP_KPSR_KRSS [3/3]

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

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