|
Digital Input/Output Reusable Driver v1.1
This project implements a GPIO reusable driver that can be adapted to various microcontrollers.
|
This module contains interface definitions for the Dio configuration. This is the header file for the definition of the interface for retrieving the digital input/output configuration table. More...
#include <stdio.h>

Go to the source code of this file.
Data Structures | |
| struct | DioConfig_t |
Macros | |
| #define | NUMBER_OF_PORTS 5U |
Functions | |
| const DioConfig_t *const | DIO_configGet (void) |
| size_t | DIO_configSizeGet (void) |
This module contains interface definitions for the Dio configuration. This is the header file for the definition of the interface for retrieving the digital input/output configuration table.
| #define NUMBER_OF_PORTS 5U |
Defines the number of ports on the processor.
| enum DioFunction_t |
Defines the possible DIO alternate function. A multiplexer is used to select the alternate function
| enum DioMode_t |
| enum DioPin_t |
Defines all the pins contained on the MCU device. It is used to set a specific bit on the ports.
| enum DioPinState_t |
| enum DioPort_t |
| enum DioResistor_t |
| enum DioSpeed_t |
Defines the output speed settings available
| enum DioType_t |
| const DioConfig_t *const DIO_configGet | ( | void | ) |
Description: This function is used to initialize the DIO based on the configuration table defined in dio_cfg module.
PRE-CONDITION: configuration table needs to be populated (sizeof > 0)
POST-CONDITION: A constant pointer to the first member of the
configuration table will be returned.
Example:
| size_t DIO_configSizeGet | ( | void | ) |
Description: This function is used to get the size of the configuration table.
PRE-CONDITION: configuration table needs to be populated (sizeof > 0)
POST-CONDITION: The size of the configuration table will be returned.
Example: