Adicionar primeiro
This commit is contained in:
39
components/peripherals/include/aux_io.h
Executable file
39
components/peripherals/include/aux_io.h
Executable file
@@ -0,0 +1,39 @@
|
||||
#ifndef AUX_IO_H_
|
||||
#define AUX_IO_H_
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
/**
|
||||
* @brief Initialize aux
|
||||
*
|
||||
*/
|
||||
void aux_init(void);
|
||||
|
||||
/**
|
||||
* @brief Read digital input
|
||||
*
|
||||
* @param name
|
||||
* @param value
|
||||
* @return esp_err_t
|
||||
*/
|
||||
esp_err_t aux_read(const char *name, bool *value);
|
||||
|
||||
/**
|
||||
* @brief Write digial output
|
||||
*
|
||||
* @param name
|
||||
* @param value
|
||||
* @return esp_err_t
|
||||
*/
|
||||
esp_err_t aux_write(const char *name, bool value);
|
||||
|
||||
/**
|
||||
* @brief Read analog input
|
||||
*
|
||||
* @param name
|
||||
* @param value
|
||||
* @return esp_err_t
|
||||
*/
|
||||
esp_err_t aux_analog_read(const char *name, int *value);
|
||||
|
||||
#endif /* AUX_IO_H_ */
|
||||
Reference in New Issue
Block a user