LibDriver BA111
Loading...
Searching...
No Matches
ba111 extern driver function

ba111 extern driver modules More...

Collaboration diagram for ba111 extern driver function:

Functions

uint8_t ba111_set_buffer (ba111_handle_t *handle, uint8_t *buf, uint16_t len)
 set buffer
uint8_t ba111_get_buffer (ba111_handle_t *handle, uint8_t *buf, uint16_t len)
 get buffer

Detailed Description

ba111 extern driver modules

Function Documentation

◆ ba111_get_buffer()

uint8_t ba111_get_buffer ( ba111_handle_t * handle,
uint8_t * buf,
uint16_t len )

get buffer

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

Definition at line 607 of file driver_ba111.c.

◆ ba111_set_buffer()

uint8_t ba111_set_buffer ( ba111_handle_t * handle,
uint8_t * buf,
uint16_t len )

set buffer

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

Definition at line 564 of file driver_ba111.c.