WIZlib Library API  ver 1.0
WIZlib Library API User Menual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
USART Driver

Platform independent USART driver. More...

Collaboration diagram for USART Driver:

Macros

#define PUTCHAR(ch_v)
 Define the compiler independent function which put character.
 
#define GETCHAR()
 Define the compiler independent function which get character.
 

Enumerations

enum  wizpf_usart { WIZ_USART1, WIZ_USART2, WIZ_USART3 }
 Indicate the USART index number. More...
 

Functions

int8 wizpf_uart_init (wizpf_usart usart)
 Initialize USART Peripheral Device. More...
 
int32 getchar_nonblk (void)
 Get one character from USART1 (None-Blocking). More...
 
int putchar (int ch)
 Put one character to USART1. More...
 
int getchar (void)
 Get one character from USART1. More...
 

Detailed Description

Platform independent USART driver.

Enumeration Type Documentation

Indicate the USART index number.

Enumerator
WIZ_USART1 

Indicate the 1st USART.

WIZ_USART2 

Indicate the 2nd USART.

WIZ_USART3 

Indicate the 3rd USART.

Definition at line 22 of file wizplatform.h.

Function Documentation

int getchar ( void  )

Get one character from USART1.

This is used by EWARM compiler as Standard IO Function.

Returns
Input Character
int32 getchar_nonblk ( void  )

Get one character from USART1 (None-Blocking).

Returns
Input Character

Definition at line 415 of file WIZ_W5200/wizplatform.c.

Here is the caller graph for this function:

int putchar ( int  ch)

Put one character to USART1.

This is used by EWARM compiler as Standard IO Function.

Parameters
chCharacter to put
Returns
Put character (same with 'ch' parameter)
int8 wizpf_uart_init ( wizpf_usart  usart)

Initialize USART Peripheral Device.

Parameters
usartUSART index number (wizpf_usart)
Returns
RET_OK: Success
RET_NOK: Error

Definition at line 84 of file WIZ_W5200/wizplatform.c.

Here is the caller graph for this function: