LibDriver MMA7660FC
Loading...
Searching...
No Matches
mma7660fc extend driver function

mma7660fc extend driver modules More...

Collaboration diagram for mma7660fc extend driver function:

Functions

uint8_t mma7660fc_set_reg (mma7660fc_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t mma7660fc_get_reg (mma7660fc_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

mma7660fc extend driver modules

Function Documentation

◆ mma7660fc_get_reg()

uint8_t mma7660fc_get_reg ( mma7660fc_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

get the chip register

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

Definition at line 2524 of file driver_mma7660fc.c.

◆ mma7660fc_set_reg()

uint8_t mma7660fc_set_reg ( mma7660fc_handle_t * handle,
uint8_t reg,
uint8_t * buf,
uint16_t len )

set the chip register

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

Definition at line 2497 of file driver_mma7660fc.c.