#ifndef __G1665_H
#define __G1665_H
#include "glib_api.h"
#define Handler_G_SDA_H (GPIOC->ODR |= GPIO_PIN_1)
#define Handler_G_SDA_L (GPIOC->ODR &=~ GPIO_PIN_1)
#define Handler_G_SCL_H (GPIOC->ODR |= GPIO_PIN_4)
#define Handler_G_SCL_L (GPIOC->ODR &=~ GPIO_PIN_4)
#define Handler_R_G_SDA (GPIOC->IDR &GPIO_PIN_1)
#define c_g_reg_pwr_mgr_1 0x6b
#define c_g_reg_smplrt 0x19
#define c_g_reg_config 0x1a
#define c_g_reg_gyro_config 0x1b
#define c_g_reg_accel_config 0x1c
#define c_g_reg_accel_xout_h 0x3b
#define c_g_reg_accel_xout_l 0x3c
#define c_g_reg_accel_yout_h 0x3d
#define c_g_reg_accel_yout_l 0x3e
#define c_g_reg_accel_zout_h 0x3f
#define c_g_reg_accel_zout_l 0x40
#define c_g_reg_temp_out_h 0x41
#define c_g_reg_temp_out_l 0x42
#define c_g_reg_xout_h 0x43
#define c_g_Reg_xout_l 0x44
#define c_g_reg_yout_h 0x45
#define c_g_reg_yout_l 0x46
#define c_g_reg_zout_h 0x47
#define c_g_Reg_zout_l 0x48
void gsensor_wirte(unsigned char reg_address,unsigned char data);
unsigned char gsensor_read(unsigned char reg_address);
void g_mpu6050_init(void);
#endif