LibDriver VS1053B
Loading...
Searching...
No Matches
vs1053b extend driver function

vs1053b extend driver modules More...

Collaboration diagram for vs1053b extend driver function:

Functions

uint8_t vs1053b_set_reg (vs1053b_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t vs1053b_get_reg (vs1053b_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register
uint8_t vs1053b_set_data (vs1053b_handle_t *handle, uint8_t *buf, uint16_t len)
 set chip data

Detailed Description

vs1053b extend driver modules

Function Documentation

◆ vs1053b_get_reg()

uint8_t vs1053b_get_reg ( vs1053b_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a vs1053b handle structure
[in]regregister 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 8164 of file driver_vs1053b.c.

◆ vs1053b_set_data()

uint8_t vs1053b_set_data ( vs1053b_handle_t * handle,
uint8_t * buf,
uint16_t len )

set chip data

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

Definition at line 8104 of file driver_vs1053b.c.

◆ vs1053b_set_reg()

uint8_t vs1053b_set_reg ( vs1053b_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to a vs1053b handle structure
[in]regregister 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 8131 of file driver_vs1053b.c.