monoZ docs
MZ_uart3_instance.h File Reference

Create UART instance. More...

#include "MZ_error_handler.h"
#include "MZ_public.h"

Go to the source code of this file.

Macros

#define MZ_UART3_INSTANCE   (USART3)
 Define the Monoz Uart3 INSTANCE. More...
 
#define MZ_UART3_INIT_BAUDRATE   (115200)
 Define the Monoz Uart3 Initial BAUDRATE. More...
 
#define MZ_UART3_INIT_WORDLENGTH   (UART_WORDLENGTH_8B)
 Define the Monoz Uart3 Initial WORDLENGTH. More...
 
#define MZ_UART3_INIT_STOPBITS   (UART_STOPBITS_1)
 Define the Monoz Uart3 Initial STOPBITS. More...
 
#define MZ_UART3_INIT_PARITY   (UART_PARITY_NONE)
 Define the Monoz Uart3 Initial PARITY. More...
 
#define MZ_UART3_INIT_MODE   (UART_MODE_TX_RX)
 Define the Monoz Uart3 Initial MODE. More...
 
#define MZ_UART3_INIT_HWFLOWCTL   (UART_HWCONTROL_NONE)
 Define the Monoz Uart3 Initial HARWARE FLOW CONTROL( HWFLOWCTL) More...
 
#define MZ_UART3_INIT_OVERSAMPLING   (UART_OVERSAMPLING_16)
 Define the Monoz Uart3 Initial Over sampling rate. More...
 
#define MZ_UART3_INIT_ONEBITSAMPLING   (UART_ONE_BIT_SAMPLE_DISABLE)
 Define the Monoz Uart3 Initial ONE BIT SAMPLING to be Disabled. More...
 
#define MZ_UART3_ADVANCEDINIT_ADVFEATUREINIT   (UART_ADVFEATURE_NO_INIT)
 Define Advance feature. More...
 
#define MZ_UART_INSTANCE   (_USART3)
 Define UART Instance. More...
 

Functions

mz_error_t UART3_init (void)
 UART initialize. More...
 

Detailed Description

Create UART instance.

Date
Mar 3, 2021
Author
MZ_click

Definition in file MZ_uart3_instance.h.

Macro Definition Documentation

◆ MZ_UART3_INSTANCE

#define MZ_UART3_INSTANCE   (USART3)

Define the Monoz Uart3 INSTANCE.

Definition at line 13 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_BAUDRATE

#define MZ_UART3_INIT_BAUDRATE   (115200)

Define the Monoz Uart3 Initial BAUDRATE.

Definition at line 14 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_WORDLENGTH

#define MZ_UART3_INIT_WORDLENGTH   (UART_WORDLENGTH_8B)

Define the Monoz Uart3 Initial WORDLENGTH.

Definition at line 15 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_STOPBITS

#define MZ_UART3_INIT_STOPBITS   (UART_STOPBITS_1)

Define the Monoz Uart3 Initial STOPBITS.

Definition at line 16 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_PARITY

#define MZ_UART3_INIT_PARITY   (UART_PARITY_NONE)

Define the Monoz Uart3 Initial PARITY.

Definition at line 17 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_MODE

#define MZ_UART3_INIT_MODE   (UART_MODE_TX_RX)

Define the Monoz Uart3 Initial MODE.

Definition at line 18 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_HWFLOWCTL

#define MZ_UART3_INIT_HWFLOWCTL   (UART_HWCONTROL_NONE)

Define the Monoz Uart3 Initial HARWARE FLOW CONTROL( HWFLOWCTL)

Definition at line 19 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_OVERSAMPLING

#define MZ_UART3_INIT_OVERSAMPLING   (UART_OVERSAMPLING_16)

Define the Monoz Uart3 Initial Over sampling rate.

Definition at line 20 of file MZ_uart3_instance.h.

◆ MZ_UART3_INIT_ONEBITSAMPLING

#define MZ_UART3_INIT_ONEBITSAMPLING   (UART_ONE_BIT_SAMPLE_DISABLE)

Define the Monoz Uart3 Initial ONE BIT SAMPLING to be Disabled.

Definition at line 21 of file MZ_uart3_instance.h.

◆ MZ_UART3_ADVANCEDINIT_ADVFEATUREINIT

#define MZ_UART3_ADVANCEDINIT_ADVFEATUREINIT   (UART_ADVFEATURE_NO_INIT)

Define Advance feature.

Definition at line 22 of file MZ_uart3_instance.h.

◆ MZ_UART_INSTANCE

#define MZ_UART_INSTANCE   (_USART3)

Define UART Instance.

Definition at line 24 of file MZ_uart3_instance.h.

Function Documentation

◆ UART3_init()

mz_error_t UART3_init ( void  )

UART initialize.

Returns
[TODO]

Definition at line 45 of file MZ_uart3_instance.c.