/** * @file hal_dio.h * @author Wang, Tong (wangtong7@midea.com) * @brief * @version 0.1 * @date 2021-10-10 * * @copyright Copyright (c) 2021 * */ #ifndef _HAL_DIO_H_ #define _HAL_DIO_H_ #include "hal_config.h" /**************************************************************** * * Standard Interface * * *************************************************************/ /********************/ /* Type definations */ /********************/ #define DIO_LEVEL_HIGH 1 #define DIO_LEVEL_LOW 0 /******************************/ /* Global Interface Variables */ /******************************/ /* !!!Important!!! */ /* Interface Variable Should Not Be Modified By Application */ /** * @brief Activate pin (with pre-defined active level) * * @param index Pin number defined in hal_config.h */ void Hal_Dio_ActivatePin(uint8_t index); /** * @brief Deactivate Pin (with pre-defined active level) * * @param index Pin number defined in hal_config.h */ void Hal_Dio_DeactivatePin(uint8_t index); /** * @brief Set pin level * * @param index Pin index * @param level Pin level */ void Hal_Dio_SetPinLevel(uint8_t index, uint8_t level); /** * @brief Init Dio module * */ void Hal_Dio_Init(); #endif