LibDriver MPU6050  1.0.0
MPU6050 full-featured driver
mpu6050 link driver function

mpu6050 link driver modules More...

Macros

#define DRIVER_MPU6050_LINK_INIT(HANDLE, STRUCTURE)   memset(HANDLE, 0, sizeof(STRUCTURE))
 initialize mpu6050_handle_t structure More...
 
#define DRIVER_MPU6050_LINK_IIC_INIT(HANDLE, FUC)   (HANDLE)->iic_init = FUC
 link iic_init function More...
 
#define DRIVER_MPU6050_LINK_IIC_DEINIT(HANDLE, FUC)   (HANDLE)->iic_deinit = FUC
 link iic_deinit function More...
 
#define DRIVER_MPU6050_LINK_IIC_READ(HANDLE, FUC)   (HANDLE)->iic_read = FUC
 link iic_read function More...
 
#define DRIVER_MPU6050_LINK_IIC_WRITE(HANDLE, FUC)   (HANDLE)->iic_write = FUC
 link iic_write function More...
 
#define DRIVER_MPU6050_LINK_DELAY_MS(HANDLE, FUC)   (HANDLE)->delay_ms = FUC
 link delay_ms function More...
 
#define DRIVER_MPU6050_LINK_DEBUG_PRINT(HANDLE, FUC)   (HANDLE)->debug_print = FUC
 link debug_print function More...
 
#define DRIVER_MPU6050_LINK_RECEIVE_CALLBACK(HANDLE, FUC)   (HANDLE)->receive_callback = FUC
 link receive_callback function More...
 

Detailed Description

mpu6050 link driver modules

Macro Definition Documentation

◆ DRIVER_MPU6050_LINK_DEBUG_PRINT

#define DRIVER_MPU6050_LINK_DEBUG_PRINT (   HANDLE,
  FUC 
)    (HANDLE)->debug_print = FUC

link debug_print function

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]FUCpointer to a debug_print function address
Note
none

◆ DRIVER_MPU6050_LINK_DELAY_MS

#define DRIVER_MPU6050_LINK_DELAY_MS (   HANDLE,
  FUC 
)    (HANDLE)->delay_ms = FUC

link delay_ms function

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]FUCpointer to a delay_ms function address
Note
none

◆ DRIVER_MPU6050_LINK_IIC_DEINIT

#define DRIVER_MPU6050_LINK_IIC_DEINIT (   HANDLE,
  FUC 
)    (HANDLE)->iic_deinit = FUC

link iic_deinit function

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]FUCpointer to an iic_deinit function address
Note
none

◆ DRIVER_MPU6050_LINK_IIC_INIT

#define DRIVER_MPU6050_LINK_IIC_INIT (   HANDLE,
  FUC 
)    (HANDLE)->iic_init = FUC

link iic_init function

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]FUCpointer to an iic_init function address
Note
none

◆ DRIVER_MPU6050_LINK_IIC_READ

#define DRIVER_MPU6050_LINK_IIC_READ (   HANDLE,
  FUC 
)    (HANDLE)->iic_read = FUC

link iic_read function

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]FUCpointer to an iic_read function address
Note
none

◆ DRIVER_MPU6050_LINK_IIC_WRITE

#define DRIVER_MPU6050_LINK_IIC_WRITE (   HANDLE,
  FUC 
)    (HANDLE)->iic_write = FUC

link iic_write function

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]FUCpointer to an iic_write function address
Note
none

◆ DRIVER_MPU6050_LINK_INIT

#define DRIVER_MPU6050_LINK_INIT (   HANDLE,
  STRUCTURE 
)    memset(HANDLE, 0, sizeof(STRUCTURE))

initialize mpu6050_handle_t structure

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]STRUCTUREmpu6050_handle_t
Note
none

◆ DRIVER_MPU6050_LINK_RECEIVE_CALLBACK

#define DRIVER_MPU6050_LINK_RECEIVE_CALLBACK (   HANDLE,
  FUC 
)    (HANDLE)->receive_callback = FUC

link receive_callback function

Parameters
[in]HANDLEpointer to an mpu6050 handle structure
[in]FUCpointer to a receive_callback function address
Note
none