PHiLIP
uart.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Kevin Weiss for HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the MIT License. See the
5  * file LICENSE in the top level directory for more details.
6  * SPDX-License-Identifier: MIT
7  */
8 
21 #ifndef UART_H_
22 #define UART_H_
23 
24 /* Defines ********************************************************************/
26 #define UART_IF_BUF_SIZE (1024)
27 
29 #define UART_DUT_BUF_SIZE (128)
30 
31 
32 /* Function prototypes ********************************************************/
40 void init_dut_uart(map_t *reg);
41 
45 void init_if_uart();
46 
55 error_t commit_dut_uart();
56 
70 error_t poll_dut_uart();
71 
85 error_t poll_if_uart();
86 
91 
95 void GPIO_CTS_INT();
96 
100 void init_dut_uart_msp();
101 
105 void deinit_dut_uart_msp();
106 
110 void init_if_uart_msp();
111 
115 void deinit_if_uart_msp();
116 
117 #endif /* UART_H_ */
118 
void deinit_dut_uart_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: uart.c:178
error_t poll_dut_uart()
Polls for any commands from the dut uart.
Definition: uart.c:378
void update_dut_uart_inputs()
Updates the uart input levels.
Definition: uart.c:517
void init_dut_uart_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: uart.c:141
error_t poll_if_uart()
Polls for any commands from the interface uart.
Definition: uart.c:382
void deinit_if_uart_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: uart.c:366
void init_if_uart_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: uart.c:313
void GPIO_CTS_INT()
This function handles dut_cts event interrupt.
Definition: uart.c:575
error_t commit_dut_uart()
Commits the dut uart registers and executes operations.
Definition: uart.c:206
The memory map.
Definition: PHiLIP_typedef.h:340
void init_if_uart()
Initializes interface uart registers.
Definition: uart.c:284
void init_dut_uart(map_t *reg)
Initializes dut uart registers.
Definition: uart.c:115