Files
433_STM32/Core/Inc/relay_control.h

58 lines
1.3 KiB
C
Raw Permalink Normal View History

/**
******************************************************************************
* @file relay_control.h
* @brief
* @author Application Layer
* @version 2.0
******************************************************************************
* @attention
*
* PA15连接继电器控制端
*
*
* v2.0 -
******************************************************************************
*/
#ifndef __RELAY_CONTROL_H
#define __RELAY_CONTROL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stdbool.h>
#define RELAY_MIN_INTERVAL 100
/**
* @brief
* @note
* @param
* @retval
*/
void Relay_Init(void);
/**
* @brief
* @note
* @param state: true=, false=
* @retval
*/
void Relay_SetState(bool state);
/**
* @brief
* @note
* @param
* @retval true=, false=
*/
bool Relay_GetState(void);
#ifdef __cplusplus
}
#endif
#endif