main_ubi_sdk v 0.1.3
This is UBI4 documentation
one_wire_port.h
Go to the documentation of this file.
1/*
2 ******************************************************************************
3 * @file one_wire_port.h
4 * @author A.Alborov
5 ******************************************************************************
6*/
7
8#ifndef MAIN_ONE_WIRE_PORT_H_
9#define MAIN_ONE_WIRE_PORT_H_
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include "UBI_SDK.h"
16
18
19#ifdef UBI_SDK_FAMILY_STM32
20#ifdef ONE_WIRE_PORT_EN
21
22
23#include "HAL_DRIVERS.h"
24
25#include "stdint.h"
26
27
28 typedef struct
29 {
30 uint8_t* rx_buffer;
31 uint16_t rx_buffer_size;
32
33 uint8_t* tx_buffer;
34 uint16_t tx_buffer_size;
35
36 UART_HandleTypeDef* uart_config;
37
38 }one_wire_init_port_struct;
39
40
41
42 typedef struct
43 {
45
46 one_wire_init_port_struct* init_struct;
47
48 uint8_t wait_receive_enable;
49
50 }one_wire_port_struct;
51
52
53
54 void one_wire_port_init(one_wire_init_port_struct* init_struct, one_wire_port_struct** out_port_struct);
55
56
57#endif
58#endif
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* MAIN_ONE_WIRE_PORT_H_ */
Definition a_port.h:99