WIZlib Library API
ver 1.0
WIZlib Library API User Menual
|
Platform independent functions. More...
Macros | |
#define | wizpf_led_flicker(led_v, interval_v) |
Flicker a LED for debug with some interval. More... | |
Enumerations | |
enum | wizpf_led { WIZ_LED1, WIZ_LED2, WIZ_LED3, WIZ_LED4 } |
Indicate the LED index number. More... | |
Functions | |
int8 | platform_init (void) |
Initialize Platform. More... | |
uint32 | wizpf_get_systick (void) |
Get current SysTick. More... | |
int32 | wizpf_tick_elapse (uint32 tick) |
Calculate Elapsed time (or Remaining time) [+]value is Elapsed-time, [-]value is Remaining-time. More... | |
uint32 | wizpf_tick_conv (bool istick2sec, uint32 tickorsec) |
Convert Tick(Second) to Second(Tick). More... | |
void | Delay_tick (uint32 tick) |
Tick Delay Function. More... | |
void | Delay_us (uint8 time_us) |
Micro-second Scale Delay Function. More... | |
void | Delay_ms (uint16 time_ms) |
Mili-second Scale Delay Function. More... | |
int8 | wizpf_led_set (wizpf_led led, uint8 action) |
Set LED On/Off/Toggle. More... | |
int8 | wizpf_led_get (wizpf_led led) |
Get current LED State. More... | |
void | wizpf_led_trap (uint8 repeat) |
Assert Function using LED. More... | |
void | GPIO_Configuration (void) |
Common GPIO Configuration. | |
void | RCC_Configuration (void) |
Common RCC Configuration. | |
void | NVIC_Configuration (void) |
Common NVIC Configuration. | |
Platform independent functions.
#define wizpf_led_flicker | ( | led_v, | |
interval_v | |||
) |
Flicker a LED for debug with some interval.
led_v | LED Index number (wizpf_led) |
interval_v | Interval time (ms) |
Definition at line 77 of file wizplatform.h.
enum wizpf_led |
Indicate the LED index number.
Enumerator | |
---|---|
WIZ_LED1 |
Indicate the 1st LED. |
WIZ_LED2 |
Indicate the 2nd LED. |
WIZ_LED3 |
Indicate the 3rd LED. |
WIZ_LED4 |
Indicate the 4th LED. |
Definition at line 32 of file wizplatform.h.
void Delay_ms | ( | uint16 | time_ms | ) |
Mili-second Scale Delay Function.
This function is not precise
time_ms | Delay time |
Definition at line 396 of file WIZ_W5200/wizplatform.c.
void Delay_tick | ( | uint32 | tick | ) |
Tick Delay Function.
This function is precise.
tick | Delay time (Default value of 1 tick is 1 ms) |
Definition at line 408 of file WIZ_W5200/wizplatform.c.
void Delay_us | ( | uint8 | time_us | ) |
Micro-second Scale Delay Function.
This function is not precise
time_us | Delay time |
Definition at line 381 of file WIZ_W5200/wizplatform.c.
int8 platform_init | ( | void | ) |
Initialize Platform.
This function should be called in the main function. If not, you have to handle network initialization manually.
Definition at line 53 of file WIZ_W5200/wizplatform.c.
uint32 wizpf_get_systick | ( | void | ) |
Get current SysTick.
Definition at line 196 of file WIZ_W5200/wizplatform.c.
int8 wizpf_led_get | ( | wizpf_led | led | ) |
Get current LED State.
led | The LED to set (wizpf_led) |
Definition at line 250 of file WIZ_W5200/wizplatform.c.
int8 wizpf_led_set | ( | wizpf_led | led, |
uint8 | action | ||
) |
Set LED On/Off/Toggle.
led | The LED to set (wizpf_led) |
action | The action to set ( VAL_ON / VAL_OFF / VAL_TOG ) |
Definition at line 214 of file WIZ_W5200/wizplatform.c.
void wizpf_led_trap | ( | uint8 | repeat | ) |
Assert Function using LED.
repeat | The repeat count to set |
Definition at line 278 of file WIZ_W5200/wizplatform.c.
uint32 wizpf_tick_conv | ( | bool | istick2sec, |
uint32 | tickorsec | ||
) |
Convert Tick(Second) to Second(Tick).
istick2sec | TRUE: Tick->Second, FALSE: Second->Tick |
tickorsec | The value to convert |
Definition at line 201 of file WIZ_W5200/wizplatform.c.
int32 wizpf_tick_elapse | ( | uint32 | tick | ) |
Calculate Elapsed time (or Remaining time) [+]value is Elapsed-time, [-]value is Remaining-time.
tick | The time to calculate |
Definition at line 207 of file WIZ_W5200/wizplatform.c.