LibDriver HLW8032
Loading...
Searching...
No Matches
hlw8032 interface driver function

hlw8032 interface driver modules More...

Collaboration diagram for hlw8032 interface driver function:

Functions

uint8_t hlw8032_interface_uart_init (void)
 interface uart init
uint8_t hlw8032_interface_uart_deinit (void)
 interface uart deinit
uint16_t hlw8032_interface_uart_read (uint8_t *buf, uint16_t len)
 interface uart read
uint8_t hlw8032_interface_uart_flush (void)
 interface uart flush
void hlw8032_interface_delay_ms (uint32_t ms)
 interface delay ms
void hlw8032_interface_debug_print (const char *const fmt,...)
 interface print format data

Detailed Description

hlw8032 interface driver modules

Function Documentation

◆ hlw8032_interface_debug_print()

void hlw8032_interface_debug_print ( const char *const fmt,
... )

interface print format data

Parameters
[in]fmtformat data
Note
none

Definition at line 104 of file driver_hlw8032_interface_template.c.

◆ hlw8032_interface_delay_ms()

void hlw8032_interface_delay_ms ( uint32_t ms)

interface delay ms

Parameters
[in]mstime
Note
none

Definition at line 94 of file driver_hlw8032_interface_template.c.

◆ hlw8032_interface_uart_deinit()

uint8_t hlw8032_interface_uart_deinit ( void )

interface uart deinit

Returns
status code
  • 0 success
  • 1 uart deinit failed
Note
none

Definition at line 58 of file driver_hlw8032_interface_template.c.

◆ hlw8032_interface_uart_flush()

uint8_t hlw8032_interface_uart_flush ( void )

interface uart flush

Returns
status code
  • 0 success
  • 1 uart flush failed
Note
none

Definition at line 84 of file driver_hlw8032_interface_template.c.

◆ hlw8032_interface_uart_init()

uint8_t hlw8032_interface_uart_init ( void )

interface uart init

Returns
status code
  • 0 success
  • 1 uart init failed
Note
none

Definition at line 46 of file driver_hlw8032_interface_template.c.

◆ hlw8032_interface_uart_read()

uint16_t hlw8032_interface_uart_read ( uint8_t * buf,
uint16_t len )

interface uart read

Parameters
[out]*bufpointer to a data buffer
[in]lenlength of the data buffer
Returns
status code
  • 0 success
  • 1 read failed
Note
none

Definition at line 72 of file driver_hlw8032_interface_template.c.