LibDriver JED1XX
Loading...
Searching...
No Matches
jed1xx extend driver function

jed1xx extend driver modules More...

Collaboration diagram for jed1xx extend driver function:

Functions

uint8_t jed1xx_set_reg (jed1xx_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t jed1xx_get_reg (jed1xx_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

jed1xx extend driver modules

Function Documentation

◆ jed1xx_get_reg()

uint8_t jed1xx_get_reg ( jed1xx_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to a jed1xx 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 319 of file driver_jed1xx.c.

◆ jed1xx_set_reg()

uint8_t jed1xx_set_reg ( jed1xx_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to a jed1xx 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 286 of file driver_jed1xx.c.