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

hlw8032 extern driver modules More...

Collaboration diagram for hlw8032 extern driver function:

Functions

uint8_t hlw8032_get_buffer (hlw8032_handle_t *handle, char *buf, uint16_t len, uint32_t ms)
 get buffer

Detailed Description

hlw8032 extern driver modules

Function Documentation

◆ hlw8032_get_buffer()

uint8_t hlw8032_get_buffer ( hlw8032_handle_t * handle,
char * buf,
uint16_t len,
uint32_t ms )

get buffer

Parameters
[in]*handlepointer to a hlw8032 handle structure
[out]*bufpointer to a data buffer
[in]lenbuffer length
[in]msdelay time in ms
Returns
status code
  • 0 success
  • 1 get buf failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 861 of file driver_hlw8032.c.