components/esp32-owb/include/owb_gpio.h

changeset 72
acc1904cd70d
parent 0
88d965579617
equal deleted inserted replaced
71:995557380e5f 72:acc1904cd70d
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * SOFTWARE. 23 * SOFTWARE.
24 */ 24 */
25 25
26 /**
27 * @file
28 * @brief Interface definitions for the ESP32 GPIO driver used to communicate with devices
29 * on the One Wire Bus.
30 *
31 * @deprecated
32 * This driver is deprecated and may be removed at some stage. It is not recommended for use
33 * due to issues with imprecise timing.
34 */
35
26 #pragma once 36 #pragma once
27 #ifndef OWB_GPIO_H 37 #ifndef OWB_GPIO_H
28 #define OWB_GPIO_H 38 #define OWB_GPIO_H
29 39
30 #include "owb.h" 40 #include "owb.h"
32 #ifdef __cplusplus 42 #ifdef __cplusplus
33 extern "C" { 43 extern "C" {
34 #endif 44 #endif
35 45
36 /** 46 /**
37 * @brief 1-wire bus connection on the gpio. 47 * @brief GPIO driver information
38 */ 48 */
39 typedef struct 49 typedef struct
40 { 50 {
41 int gpio; ///< Value of the GPIO connected to the 1-Wire bus 51 int gpio; ///< Value of the GPIO connected to the 1-Wire bus
42 OneWireBus bus; ///< OneWireBus instance 52 OneWireBus bus; ///< OneWireBus instance

mercurial