MTB CAT1 Peripheral driver library

General Description

Constants to be used for setting the drive mode of the pin.

There are eight primary drive modes. Below diagrams are simplified output driver diagrams of the pin view for the CPU register and UDB/DSI based digital peripherals on each of the eight drive modes.

gpio_cpu_dm_block_diagram.png

Below is a simplified output driver diagram that shows the pin view for fixed-function-based peripherals for each of the eight drive modes.

gpio_periio_dm_block_diagram.png

Macros

#define CY_GPIO_DM_ANALOG   (0x00UL)
 Analog High-Z. More...
 
#define CY_GPIO_DM_INVALID_IN_OFF   (0x01UL)
 Invalid mode. More...
 
#define CY_GPIO_DM_PULLUP_IN_OFF   (0x02UL)
 Resistive Pull-Up. More...
 
#define CY_GPIO_DM_PULLDOWN_IN_OFF   (0x03UL)
 Resistive Pull-Down. More...
 
#define CY_GPIO_DM_OD_DRIVESLOW_IN_OFF   (0x04UL)
 Open Drain, Drives Low. More...
 
#define CY_GPIO_DM_OD_DRIVESHIGH_IN_OFF   (0x05UL)
 Open Drain, Drives High. More...
 
#define CY_GPIO_DM_STRONG_IN_OFF   (0x06UL)
 Strong Drive. More...
 
#define CY_GPIO_DM_PULLUP_DOWN_IN_OFF   (0x07UL)
 Resistive Pull-Up/Down. More...
 
#define CY_GPIO_DM_HIGHZ   (0x08UL)
 Digital High-Z. More...
 
#define CY_GPIO_DM_INVALID   (0x09UL)
 Invalid mode. More...
 
#define CY_GPIO_DM_PULLUP   (0x0AUL)
 Resistive Pull-Up. More...
 
#define CY_GPIO_DM_PULLDOWN   (0x0BUL)
 Resistive Pull-Down. More...
 
#define CY_GPIO_DM_OD_DRIVESLOW   (0x0CUL)
 Open Drain, Drives Low. More...
 
#define CY_GPIO_DM_OD_DRIVESHIGH   (0x0DUL)
 Open Drain, Drives High. More...
 
#define CY_GPIO_DM_STRONG   (0x0EUL)
 Strong Drive. More...
 
#define CY_GPIO_DM_PULLUP_DOWN   (0x0FUL)
 Resistive Pull-Up/Down. More...
 

Macro Definition Documentation

◆ CY_GPIO_DM_ANALOG

#define CY_GPIO_DM_ANALOG   (0x00UL)

Analog High-Z.

Input buffer off

◆ CY_GPIO_DM_INVALID_IN_OFF

#define CY_GPIO_DM_INVALID_IN_OFF   (0x01UL)

Invalid mode.

It should not be used

◆ CY_GPIO_DM_PULLUP_IN_OFF

#define CY_GPIO_DM_PULLUP_IN_OFF   (0x02UL)

Resistive Pull-Up.

Input buffer off

◆ CY_GPIO_DM_PULLDOWN_IN_OFF

#define CY_GPIO_DM_PULLDOWN_IN_OFF   (0x03UL)

Resistive Pull-Down.

Input buffer off

◆ CY_GPIO_DM_OD_DRIVESLOW_IN_OFF

#define CY_GPIO_DM_OD_DRIVESLOW_IN_OFF   (0x04UL)

Open Drain, Drives Low.

Input buffer off

◆ CY_GPIO_DM_OD_DRIVESHIGH_IN_OFF

#define CY_GPIO_DM_OD_DRIVESHIGH_IN_OFF   (0x05UL)

Open Drain, Drives High.

Input buffer off

◆ CY_GPIO_DM_STRONG_IN_OFF

#define CY_GPIO_DM_STRONG_IN_OFF   (0x06UL)

Strong Drive.

Input buffer off

◆ CY_GPIO_DM_PULLUP_DOWN_IN_OFF

#define CY_GPIO_DM_PULLUP_DOWN_IN_OFF   (0x07UL)

Resistive Pull-Up/Down.

Input buffer off

◆ CY_GPIO_DM_HIGHZ

#define CY_GPIO_DM_HIGHZ   (0x08UL)

Digital High-Z.

Input buffer on

◆ CY_GPIO_DM_INVALID

#define CY_GPIO_DM_INVALID   (0x09UL)

Invalid mode.

It should not be used

◆ CY_GPIO_DM_PULLUP

#define CY_GPIO_DM_PULLUP   (0x0AUL)

Resistive Pull-Up.

Input buffer on

◆ CY_GPIO_DM_PULLDOWN

#define CY_GPIO_DM_PULLDOWN   (0x0BUL)

Resistive Pull-Down.

Input buffer on

◆ CY_GPIO_DM_OD_DRIVESLOW

#define CY_GPIO_DM_OD_DRIVESLOW   (0x0CUL)

Open Drain, Drives Low.

Input buffer on

◆ CY_GPIO_DM_OD_DRIVESHIGH

#define CY_GPIO_DM_OD_DRIVESHIGH   (0x0DUL)

Open Drain, Drives High.

Input buffer on

◆ CY_GPIO_DM_STRONG

#define CY_GPIO_DM_STRONG   (0x0EUL)

Strong Drive.

Input buffer on

◆ CY_GPIO_DM_PULLUP_DOWN

#define CY_GPIO_DM_PULLUP_DOWN   (0x0FUL)

Resistive Pull-Up/Down.

Input buffer on