ISSDK  1.7
IoT Sensing Software Development Kit
Data Structures | Macros | Typedefs | Enumerations | Variables
gpio_driver.h File Reference
#include "Driver_Common.h"
#include "Driver_GPIO.h"
#include "fsl_common.h"
#include "fsl_gpio.h"
Include dependency graph for gpio_driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gpioConfigiMXSDK
 The GPIO Pin Configuration i.MX SDK. More...
 
struct  gpioHandleiMXSDK
 The GPIO pin handle for i.MX SDK. More...
 
struct  gpioIsrObj
 The gpio isr object. More...
 

Macros

#define PIN_SET   1U
 
#define PIN_CLR   0U
 
#define MAKE_GPIO_HANDLE(Base, PinNumber, Irq)
 Macro to create a Gpio handle. More...
 

Typedefs

typedef enum port_number port_number_t
 GPIO PORT NAMES. More...
 
typedef struct gpioConfigiMXSDK gpioConfigiMXSDK_t
 The GPIO Pin Configuration i.MX SDK. More...
 
typedef struct gpioHandleiMXSDK gpioHandleiMXSDK_t
 The GPIO pin handle for i.MX SDK. More...
 
typedef struct gpioIsrObj gpioIsrObj_t
 The gpio isr object. More...
 

Enumerations

enum  port_number {
  GPIO1_NUM = 0, GPIO2_NUM = 1, GPIO3_NUM = 2, GPIO4_NUM = 3,
  GPIO5_NUM = 4, TOTAL_NUMBER_PORT, PORTA_NUM = 0, PORTB_NUM = 1,
  PORTC_NUM = 2, PORTD_NUM = 3, PORTE_NUM = 4, TOTAL_NUMBER_PORT,
  PORTA_NUM = 0, PORTB_NUM = 1, TOTAL_NUMBER_PORT
}
 GPIO PORT NAMES. More...
 

Variables

GENERIC_DRIVER_GPIO Driver_GPIO_KSDK
 

Macro Definition Documentation

◆ MAKE_GPIO_HANDLE

#define MAKE_GPIO_HANDLE (   Base,
  PinNumber,
  Irq 
)
Value:
static gpioHandleKSDK_t PortName##PinNumber = {.base = Base, \
.pinNumber = PinNumber, \
.irq = Irq};
The GPIO pin handle for KSDK.
Definition: gpio_driver.h:75
GPIO_Type * base
Definition: gpio_driver.h:77

Macro to create a Gpio handle.

Definition at line 97 of file gpio_driver.h.

◆ PIN_CLR

#define PIN_CLR   0U

Definition at line 48 of file gpio_driver.h.

Referenced by imxsdk_gpio_clr_pin(), and imxsdk_gpio_toggle_pin().

◆ PIN_SET

#define PIN_SET   1U

Definition at line 47 of file gpio_driver.h.

Referenced by imxsdk_gpio_set_pin(), and imxsdk_gpio_toggle_pin().

Typedef Documentation

◆ gpioConfigiMXSDK_t

The GPIO Pin Configuration i.MX SDK.

◆ gpioHandleiMXSDK_t

The GPIO pin handle for i.MX SDK.

◆ gpioIsrObj_t

typedef struct gpioIsrObj gpioIsrObj_t

The gpio isr object.

◆ port_number_t

typedef enum port_number port_number_t

GPIO PORT NAMES.

Enumeration Type Documentation

◆ port_number

GPIO PORT NAMES.

Enumerator
GPIO1_NUM 
GPIO2_NUM 
GPIO3_NUM 
GPIO4_NUM 
GPIO5_NUM 
TOTAL_NUMBER_PORT 
PORTA_NUM 
PORTB_NUM 
PORTC_NUM 
PORTD_NUM 
PORTE_NUM 
TOTAL_NUMBER_PORT 
PORTA_NUM 
PORTB_NUM 
TOTAL_NUMBER_PORT 

Definition at line 53 of file gpio_driver.h.

Variable Documentation

◆ Driver_GPIO_KSDK

GENERIC_DRIVER_GPIO Driver_GPIO_KSDK

Definition at line 203 of file gpio_driver.c.