LibDriver PCF8563
Loading...
Searching...
No Matches
pcf8563 extern driver function

pcf8563 extern driver modules More...

Collaboration diagram for pcf8563 extern driver function:

Functions

uint8_t pcf8563_set_reg (pcf8563_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t pcf8563_get_reg (pcf8563_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

pcf8563 extern driver modules

Function Documentation

◆ pcf8563_get_reg()

uint8_t pcf8563_get_reg ( pcf8563_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a pcf8563 handle structure
[in]regiic register address
[out]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2194 of file driver_pcf8563.c.

◆ pcf8563_set_reg()

uint8_t pcf8563_set_reg ( pcf8563_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to a pcf8563 handle structure
[in]regiic register address
[in]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 2162 of file driver_pcf8563.c.