Macros | Functions
IEC60730_gpio_test.h File Reference
#include "stdint.h"

Go to the source code of this file.

Macros

#define PORT_1   0x0001
 
#define PORT_2   0x0002
 
#define PORT_3   0x0004
 
#define PORT_4   0x0008
 
#define PORT_5   0x0010
 
#define PORT_6   0x0020
 
#define PORT_7   0x0040
 
#define PORT_8   0x0080
 
#define PORT_9   0x0100
 
#define PORT_10   0x0200
 
#define PORT_11   0x0400
 
#define PORT_A   PORT_1 + PORT_2
 
#define PORT_B   PORT_3 + PORT_4
 
#define PORT_C   PORT_5 + PORT_6
 
#define PORT_D   PORT_7 + PORT_8
 
#define PORT_E   PORT_9 + PORT_10
 
#define PORT_F   PORT_11
 
#define PORT_J   0x1000
 
#define PIN0   0x0001
 
#define PIN1   0x0002
 
#define PIN2   0x0004
 
#define PIN3   0x0008
 
#define PIN4   0x0010
 
#define PIN5   0x0020
 
#define PIN6   0x0040
 
#define PIN7   0x0080
 
#define PIN8   0x0100
 
#define PIN9   0x0200
 
#define PIN10   0x0400
 
#define PIN11   0x0800
 
#define PIN12   0x1000
 
#define PIN13   0x2000
 
#define PIN14   0x4000
 
#define PIN15   0x8000
 
#define PIN0_HIGH   0x0001
 
#define PIN1_HIGH   0x0002
 
#define PIN2_HIGH   0x0004
 
#define PIN3_HIGH   0x0008
 
#define PIN4_HIGH   0x0010
 
#define PIN5_HIGH   0x0020
 
#define PIN6_HIGH   0x0040
 
#define PIN7_HIGH   0x0080
 
#define PIN8_HIGH   0x0100
 
#define PIN9_HIGH   0x0200
 
#define PIN10_HIGH   0x0400
 
#define PIN11_HIGH   0x0800
 
#define PIN12_HIGH   0x1000
 
#define PIN13_HIGH   0x2000
 
#define PIN14_HIGH   0x4000
 
#define PIN15_HIGH   0x8000
 
#define PIN0_LOW   0x0000
 
#define PIN1_LOW   0x0000
 
#define PIN2_LOW   0x0000
 
#define PIN3_LOW   0x0000
 
#define PIN4_LOW   0x0000
 
#define PIN5_LOW   0x0000
 
#define PIN6_LOW   0x0000
 
#define PIN7_LOW   0x0000
 
#define PIN8_LOW   0x0000
 
#define PIN9_LOW   0x0000
 
#define PIN10_LOW   0x0000
 
#define PIN11_LOW   0x0000
 
#define PIN12_LOW   0x0000
 
#define PIN13_LOW   0x0000
 
#define PIN14_LOW   0x0000
 
#define PIN15_LOW   0x0000
 

Functions

uint8_t IEC60730_GPIO_TEST_testGpioOutput (uint16_t port, uint16_t gpioPin)
 
uint8_t IEC60730_GPIO_TEST_testGpioInput (uint16_t port, uint16_t gpioPin, uint16_t expectedValue)
 

Macro Definition Documentation

#define PORT_1   0x0001
#define PORT_2   0x0002
#define PORT_3   0x0004
#define PORT_4   0x0008
#define PORT_5   0x0010
#define PORT_6   0x0020
#define PORT_7   0x0040
#define PORT_8   0x0080
#define PORT_9   0x0100
#define PORT_10   0x0200
#define PORT_11   0x0400
#define PORT_A   PORT_1 + PORT_2
#define PORT_B   PORT_3 + PORT_4
#define PORT_C   PORT_5 + PORT_6
#define PORT_D   PORT_7 + PORT_8
#define PORT_E   PORT_9 + PORT_10
#define PORT_F   PORT_11
#define PORT_J   0x1000
#define PIN0   0x0001
#define PIN1   0x0002
#define PIN2   0x0004
#define PIN3   0x0008
#define PIN4   0x0010
#define PIN5   0x0020
#define PIN6   0x0040
#define PIN7   0x0080
#define PIN8   0x0100
#define PIN9   0x0200
#define PIN10   0x0400
#define PIN11   0x0800
#define PIN12   0x1000
#define PIN13   0x2000
#define PIN14   0x4000
#define PIN15   0x8000
#define PIN0_HIGH   0x0001
#define PIN1_HIGH   0x0002
#define PIN2_HIGH   0x0004
#define PIN3_HIGH   0x0008
#define PIN4_HIGH   0x0010
#define PIN5_HIGH   0x0020
#define PIN6_HIGH   0x0040
#define PIN7_HIGH   0x0080
#define PIN8_HIGH   0x0100
#define PIN9_HIGH   0x0200
#define PIN10_HIGH   0x0400
#define PIN11_HIGH   0x0800
#define PIN12_HIGH   0x1000
#define PIN13_HIGH   0x2000
#define PIN14_HIGH   0x4000
#define PIN15_HIGH   0x8000
#define PIN0_LOW   0x0000
#define PIN1_LOW   0x0000
#define PIN2_LOW   0x0000
#define PIN3_LOW   0x0000
#define PIN4_LOW   0x0000
#define PIN5_LOW   0x0000
#define PIN6_LOW   0x0000
#define PIN7_LOW   0x0000
#define PIN8_LOW   0x0000
#define PIN9_LOW   0x0000
#define PIN10_LOW   0x0000
#define PIN11_LOW   0x0000
#define PIN12_LOW   0x0000
#define PIN13_LOW   0x0000
#define PIN14_LOW   0x0000
#define PIN15_LOW   0x0000

Copyright 2015, Texas Instruments Incorporated