Home
last modified time | relevance | path

Searched refs:drv (Results 1 – 25 of 117) sorted by relevance

12345

/AliOS-Things-master/components/drivers/core/base/core/
A Du_driver.c27 if (!drv) { in u_driver_dump()
33 drv->name ? drv->name : "NULL", in u_driver_dump()
34 drv, drv->bus, drv->p); in u_driver_dump()
36 drv->init, drv->deinit, drv->pm, drv->on_ping); in u_driver_dump()
38 drv->probe, drv->remove, drv->shutdown, drv->suspend, drv->resume); in u_driver_dump()
85 p->drv = drv; in u_driver_initialize()
86 drv->p = p; in u_driver_initialize()
115 if (!drv->p || !drv->bus || !drv->name) { in u_driver_add()
116 ddkc_err("invalid drv->p:%p, drv->bus:%p or drv->name:%p\r\n", drv->p, drv->bus, drv->name); in u_driver_add()
170 if(!drv) in u_driver_register()
[all …]
A Du_bus.c90 drv = drv_p->drv; in u_bus_dump()
201 dev->drv = drv; in u_driver_init_device()
252 if (drv->bus) { in u_driver_match_device()
254 return drv->bus->match ? drv->bus->match(dev, drv) : 1; in u_driver_match_device()
275 if (dev->drv) { in u_bus_try_init_device()
286 drv = drv_p->drv; in u_bus_try_init_device()
549 if (!drv) { in u_bus_del_driver()
554 bus = drv->bus; in u_bus_del_driver()
627 ddkc_dbg("drv:%p, drv->p:%p, &drv->p->dev_list:%p\r\n", drv, drv->p, &drv->p->dev_list); in u_bus_detach_driver()
649 u_driver_t *drv = dev->drv; in u_bus_detach_device() local
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_misc/
A Dlv_fs.c75 return drv->ready_cb(drv); in lv_fs_is_ready()
102 if(file_p->drv->ready_cb(file_p->drv) == false) { in lv_fs_open()
147 lv_fs_res_t res = file_p->drv->close_cb(file_p->drv, file_p->file_d); in lv_fs_close()
172 if(drv->ready_cb(drv) == false) return LV_FS_RES_HW_ERR; in lv_fs_remove()
178 lv_fs_res_t res = drv->remove_cb(drv, real_path); in lv_fs_remove()
291 lv_fs_res_t res = file_p->drv->trunc_cb(file_p->drv, file_p->file_d); in lv_fs_trunc()
330 if(!drv) { in lv_fs_rename()
335 if(drv->ready_cb(drv) == false) { in lv_fs_rename()
345 lv_fs_res_t res = drv->rename_cb(drv, old_real, new_real); in lv_fs_rename()
426 res = rddir_p->drv->dir_close_cb(rddir_p->drv, rddir_p->dir_d); in lv_fs_dir_close()
[all …]
A Dlv_fs.h70 bool (*ready_cb)(struct _lv_fs_drv_t * drv);
73 lv_fs_res_t (*close_cb)(struct _lv_fs_drv_t * drv, void * file_p);
74 lv_fs_res_t (*remove_cb)(struct _lv_fs_drv_t * drv, const char * fn);
77 lv_fs_res_t (*seek_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t pos);
78 lv_fs_res_t (*tell_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
79 lv_fs_res_t (*trunc_cb)(struct _lv_fs_drv_t * drv, void * file_p);
85 lv_fs_res_t (*dir_read_cb)(struct _lv_fs_drv_t * drv, void * rddir_p, char * fn);
86 lv_fs_res_t (*dir_close_cb)(struct _lv_fs_drv_t * drv, void * rddir_p);
96 lv_fs_drv_t * drv; member
102 lv_fs_drv_t * drv; member
[all …]
/AliOS-Things-master/components/sensor/
A Ddrv.mk3 $(NAME)_SOURCES += drv/drv_acc_adi_adxl372.c
6 $(NAME)_SOURCES += drv/drv_acc_adi_adxl345.c
9 $(NAME)_SOURCES += drv/drv_acc_adi_adxl355.c
12 $(NAME)_SOURCES += drv/drv_acc_bosch_bma253.c
15 $(NAME)_SOURCES += drv/drv_acc_bosch_bma280.c
18 $(NAME)_SOURCES += drv/drv_acc_bosch_bma421.c
21 $(NAME)_SOURCES += drv/drv_acc_bosch_bma422.c
24 $(NAME)_SOURCES += drv/drv_acc_bosch_bma455.c
27 $(NAME)_SOURCES += drv/drv_acc_bosch_bma456.c
108 $(NAME)_SOURCES += drv/drv_acc_st_lis3dh.c
[all …]
/AliOS-Things-master/components/drivers/core/base/platform/
A Du_platform_bus.c60 drv = to_u_platform_driver(_dev->drv); in u_platform_bus_init()
67 if (drv->init) { in u_platform_bus_init()
76 _dev->drv = NULL; in u_platform_bus_init()
94 drv = to_u_platform_driver(_dev->drv); in u_platform_bus_deinit()
95 ddkc_dbg("dev:%p, _dev->drv:%p, drv:%p\r\n", dev, _dev->drv, drv); in u_platform_bus_deinit()
119 drv = to_u_platform_driver(_dev->drv); in u_platform_bus_pm()
123 if (drv->pm) { in u_platform_bus_pm()
199 if (!drv) { in u_platform_driver_register()
204 if (drv->bus && drv->bus != &u_platform_bus) { in u_platform_driver_register()
206 drv->bus, drv->bus->name, &u_platform_bus); in u_platform_driver_register()
[all …]
/AliOS-Things-master/components/littlevgl/porting/
A Dlv_port_fs_template.c46 static lv_fs_res_t fs_close (lv_fs_drv_t * drv, void * file_p);
49 static lv_fs_res_t fs_seek (lv_fs_drv_t * drv, void * file_p, uint32_t pos);
52 static lv_fs_res_t fs_remove (lv_fs_drv_t * drv, const char *path);
53 static lv_fs_res_t fs_trunc (lv_fs_drv_t * drv, void * file_p);
57 static lv_fs_res_t fs_dir_read (lv_fs_drv_t * drv, void * rddir_p, char *fn);
58 static lv_fs_res_t fs_dir_close (lv_fs_drv_t * drv, void * rddir_p);
168 static lv_fs_res_t fs_close (lv_fs_drv_t * drv, void * file_p)
222 static lv_fs_res_t fs_seek (lv_fs_drv_t * drv, void * file_p, uint32_t pos)
269 static lv_fs_res_t fs_remove (lv_fs_drv_t * drv, const char *path)
285 static lv_fs_res_t fs_trunc (lv_fs_drv_t * drv, void * file_p)
[all …]
/AliOS-Things-master/components/sensor/drv/
A Ddrv_mag_rohm_bm1422a.c168 if(drv == NULL){ in drv_mag_rohm_bm1422a_validate_id()
375 drv_mag_rohm_bm1422a_set_step1(drv,0x82); in drv_mag_rohm_bm1422a_offset_adjustment()
376 drv_mag_rohm_bm1422a_set_step2(drv,0x0C); in drv_mag_rohm_bm1422a_offset_adjustment()
382 drv_mag_rohm_bm1422a_set_x_offset(drv,wk_dat); in drv_mag_rohm_bm1422a_offset_adjustment()
383 drv_mag_rohm_bm1422a_set_step4(drv,0x40); in drv_mag_rohm_bm1422a_offset_adjustment()
411 drv_mag_rohm_bm1422a_set_step4(drv,0x40); in drv_mag_rohm_bm1422a_offset_adjustment()
436 drv_mag_rohm_bm1422a_set_step4(drv,0x40); in drv_mag_rohm_bm1422a_offset_adjustment()
495 drv_mag_rohm_bm1422a_set_cntl1(drv,0x80); in drv_mag_rohm_bm1422a_set_default_config()
496 drv_mag_rohm_bm1422a_set_step1(drv,0x0000); in drv_mag_rohm_bm1422a_set_default_config()
499 drv_mag_rohm_bm1422a_set_step2(drv,0x0c); in drv_mag_rohm_bm1422a_set_default_config()
[all …]
A Ddrv_ecg_adi_adpd188gg.c77 static int drv_ecg_adi_adpd188gg_validate_id(i2c_dev_t* drv, uint16_t id_value) in drv_ecg_adi_adpd188gg_validate_id() argument
82 if(drv == NULL){ in drv_ecg_adi_adpd188gg_validate_id()
98 static int drv_ecg_adi_adpd188gg_soft_reset(i2c_dev_t* drv) in drv_ecg_adi_adpd188gg_soft_reset() argument
110 static int drv_ecg_adi_adpd188gg_set_power_mode(i2c_dev_t* drv, dev_power_mode_e mode) in drv_ecg_adi_adpd188gg_set_power_mode() argument
144 static int drv_ecg_adi_adpd188gg_set_odr(i2c_dev_t* drv, uint16_t odr) in drv_ecg_adi_adpd188gg_set_odr() argument
173 static int drv_ecg_adi_adpd188gg_set_offset(i2c_dev_t* drv) in drv_ecg_adi_adpd188gg_set_offset() argument
236 static int drv_ecg_adi_adpd188gg_set_led_coarse(i2c_dev_t* drv) in drv_ecg_adi_adpd188gg_set_led_coarse() argument
268 static int drv_ecg_adi_adpd188gg_set_led(i2c_dev_t* drv) in drv_ecg_adi_adpd188gg_set_led() argument
306 static int drv_ecg_adi_adpd188gg_set_afe_tia(i2c_dev_t* drv) in drv_ecg_adi_adpd188gg_set_afe_tia() argument
367 static int drv_ecg_adi_adpd188gg_set_flt(i2c_dev_t* drv) in drv_ecg_adi_adpd188gg_set_flt() argument
[all …]
A Ddrv_mag_st_lis3mdl.c114 static int drv_mag_st_lis3mdl_soft_reset(i2c_dev_t *drv) in drv_mag_st_lis3mdl_soft_reset() argument
126 UNUSED static int drv_mag_st_lis3mdl_selftest(i2c_dev_t *drv) in drv_mag_st_lis3mdl_selftest() argument
138 UNUSED static int drv_mag_st_lis3mdl_reboot(i2c_dev_t *drv) in drv_mag_st_lis3mdl_reboot() argument
155 if (drv == NULL) { in drv_mag_st_lis3mdl_validate_id()
172 static int drv_mag_st_lis3mdl_set_power_mode(i2c_dev_t * drv, in drv_mag_st_lis3mdl_set_power_mode() argument
201 static int drv_mag_st_lis3mdl_set_odr(i2c_dev_t *drv, uint8_t odr) in drv_mag_st_lis3mdl_set_odr() argument
307 UNUSED static int drv_mag_st_lis3mdl_lowpower_mode(i2c_dev_t *drv, in drv_mag_st_lis3mdl_lowpower_mode() argument
381 static int drv_mag_st_lis3mdl_set_ble(i2c_dev_t *drv, uint8_t ble) in drv_mag_st_lis3mdl_set_ble() argument
435 static int drv_mag_st_lis3mdl_set_default_config(i2c_dev_t *drv) in drv_mag_st_lis3mdl_set_default_config() argument
454 ret = drv_mag_st_lis3mdl_set_range(drv, MAG_RANGE_8GAUSS); in drv_mag_st_lis3mdl_set_default_config()
[all …]
A Ddrv_mag_st_lis2mdl.c105 UNUSED static int drv_mag_st_lis2mdl_soft_reset(i2c_dev_t* drv) in drv_mag_st_lis2mdl_soft_reset() argument
117 UNUSED static int drv_mag_st_lis2mdl_selftest(i2c_dev_t* drv) in drv_mag_st_lis2mdl_selftest() argument
129 UNUSED static int drv_mag_st_lis2mdl_reboot(i2c_dev_t* drv) in drv_mag_st_lis2mdl_reboot() argument
146 if(drv == NULL){ in drv_mag_st_lis2mdl_validate_id()
210 static int drv_mag_st_lis2mdl_enable_off_canc(i2c_dev_t* drv) in drv_mag_st_lis2mdl_enable_off_canc() argument
227 static int drv_mag_st_lis2mdl_enable_temp(i2c_dev_t* drv) in drv_mag_st_lis2mdl_enable_temp() argument
359 static int drv_mag_st_lis2mdl_st_discard(i2c_dev_t* drv) in drv_mag_st_lis2mdl_st_discard() argument
489 ret = drv_mag_st_lis2mdl_st_discard(drv); in drv_mag_st_lis2mdl_self_test()
496 ret = drv_mag_st_lis2mdl_st_data(drv, out_nost); in drv_mag_st_lis2mdl_self_test()
512 ret = drv_mag_st_lis2mdl_st_discard(drv); in drv_mag_st_lis2mdl_self_test()
[all …]
A Ddrv_acc_mag_st_lsm303agr.c233 if(drv == NULL){ in drv_acc_st_lsm303agr_validate_id()
382 static int drv_acc_st_lsm303agr_set_bdu(i2c_dev_t* drv) in drv_acc_st_lsm303agr_set_bdu() argument
539 ret = drv_acc_st_lsm303agr_st_discard(drv); in drv_acc_st_lsm303agr_self_test()
546 ret = drv_acc_st_lsm303agr_st_data(drv, out_nost); in drv_acc_st_lsm303agr_self_test()
562 ret = drv_acc_st_lsm303agr_st_discard(drv); in drv_acc_st_lsm303agr_self_test()
569 ret = drv_acc_st_lsm303agr_st_data(drv, out_st); in drv_acc_st_lsm303agr_self_test()
812 if(drv == NULL){ in drv_mag_st_lsm303agr_validate_id()
1155 ret = drv_mag_st_lsm303agr_st_discard(drv); in drv_mag_st_lsm303agr_self_test()
1162 ret = drv_mag_st_lsm303agr_st_data(drv, out_nost); in drv_mag_st_lsm303agr_self_test()
1178 ret = drv_mag_st_lsm303agr_st_discard(drv); in drv_mag_st_lsm303agr_self_test()
[all …]
A Ddrv_acc_mir3_da270.c91 if(drv == NULL){ in drv_acc_mir3_da270_validate_id()
112 ret = sensor_i2c_write(drv, NSA_REG_STEP_CONGIF1, in drv_acc_mir3_da270_open_step_counter()
119 ret = sensor_i2c_write(drv, NSA_REG_STEP_CONGIF2, in drv_acc_mir3_da270_open_step_counter()
126 ret = sensor_i2c_write(drv, NSA_REG_STEP_CONGIF3, in drv_acc_mir3_da270_open_step_counter()
133 ret = sensor_i2c_write(drv, NSA_REG_STEP_CONGIF4, in drv_acc_mir3_da270_open_step_counter()
140 ret = sensor_i2c_write(drv, NSA_REG_STEP_FILTER, in drv_acc_mir3_da270_open_step_counter()
155 ret = sensor_i2c_write(drv, NSA_REG_STEP_FILTER, in drv_acc_mir3_da270_close_step_counter()
234 ret = sensor_i2c_write(drv, NSA_REG_G_RANGE, in drv_acc_mir3_da270_set_default_config()
241 ret = sensor_i2c_write(drv, NSA_REG_INT_PIN_CONFIG, in drv_acc_mir3_da270_set_default_config()
259 ret = drv_acc_mir3_da270_close_step_counter(drv); in drv_acc_mir3_da270_set_default_config()
[all …]
A Ddrv_acc_mir3_da217.c95 if (drv == NULL) { in drv_acc_mir3_da217_validate_id()
99 ret = sensor_i2c_read(drv, NSA_REG_WHO_AM_I, &value, I2C_DATA_LEN, in drv_acc_mir3_da217_validate_id()
111 UNUSED static int drv_acc_mir3_da217_open_step_counter(i2c_dev_t *drv) in drv_acc_mir3_da217_open_step_counter() argument
154 static int drv_acc_mir3_da217_close_step_counter(i2c_dev_t *drv) in drv_acc_mir3_da217_close_step_counter() argument
169 static int drv_acc_mir3_da217_set_power_mode(i2c_dev_t * drv, in drv_acc_mir3_da217_set_power_mode() argument
199 static int drv_acc_mir3_da217_set_default_config(i2c_dev_t *drv) in drv_acc_mir3_da217_set_default_config() argument
238 ret = sensor_i2c_write(drv, NSA_REG_G_RANGE, &value, I2C_DATA_LEN, in drv_acc_mir3_da217_set_default_config()
251 ret = drv_acc_mir3_da217_set_power_mode(drv, DEV_SLEEP); in drv_acc_mir3_da217_set_default_config()
263 ret = drv_acc_mir3_da217_close_step_counter(drv); in drv_acc_mir3_da217_set_default_config()
276 ret = sensor_i2c_write(drv, NSA_REG_INTERRUPT_MAPPING2, &value, in drv_acc_mir3_da217_set_default_config()
[all …]
A Ddrv_acc_gyro_bosch_bmi260.c393 if(drv == NULL) { in drv_acc_gyro_bosch_bmi260_validate_id()
426 if(drv == NULL) { in drv_acc_gyro_bosch_bmi260_enable()
491 rslt = cfg_error_status(drv); in drv_acc_gyro_bosch_bmi260_enable()
521 rslt = cfg_error_status(drv); in drv_acc_gyro_bosch_bmi260_enable()
565 if(drv == NULL) { in drv_acc_gyro_bosch_bmi260_disable()
627 if(drv == NULL) { in drv_acc_bosch_bmi260_enable()
692 rslt = cfg_error_status(drv); in drv_acc_bosch_bmi260_enable()
920 rslt = cfg_error_status(drv); in drv_acc_bosch_bmi260_set_odr()
1034 rslt = cfg_error_status(drv); in drv_acc_bosch_bmi260_set_range()
1326 if(drv == NULL) { in drv_gyro_bosch_bmi260_enable()
[all …]
A Ddrv_mag_temp_memsic_mmc3680kj.c107 if (drv == NULL) { in mmc3680kj_validate_id()
124 static int mmc3680kj_check_otp(i2c_dev_t *drv) in mmc3680kj_check_otp() argument
129 if (drv == NULL) { in mmc3680kj_check_otp()
146 static int mmc3680kj_get_comp_matrix(i2c_dev_t *drv) in mmc3680kj_get_comp_matrix() argument
152 if (drv == NULL) { in mmc3680kj_get_comp_matrix()
206 static int mmc3680kj_set_pulse_width(i2c_dev_t *drv) in mmc3680kj_set_pulse_width() argument
211 if (drv == NULL) { in mmc3680kj_set_pulse_width()
246 static int mmc3680kj_set(i2c_dev_t *drv) in mmc3680kj_set() argument
251 if (drv == NULL) { in mmc3680kj_set()
271 if (drv == NULL) { in mmc3680kj_set_output_resolution()
[all …]
A Ddrv_co2_sensirion_scd30.c103 static int drv_scd30_cmd_write(i2c_dev_t* drv, uint8_t* cmd, uint8_t len) in drv_scd30_cmd_write() argument
105 return hal_i2c_master_send(drv, drv->config.dev_addr, cmd, len, AOS_WAIT_FOREVER); in drv_scd30_cmd_write()
108 static int drv_scd30_result_read(i2c_dev_t* drv, uint8_t *data, uint16_t size) in drv_scd30_result_read() argument
113 return hal_i2c_master_recv(drv, drv->config.dev_addr, data, size, AOS_WAIT_FOREVER); in drv_scd30_result_read()
116 static int scd30_check_data_ready(i2c_dev_t* drv) in scd30_check_data_ready() argument
119 int ret = drv_scd30_cmd_write(drv, CMD_DATA_READY, CMD_DATA_READY_LEN); in scd30_check_data_ready()
125 ret = drv_scd30_result_read(drv, buf, CMD_DATA_READY_RESULT_LEN); in scd30_check_data_ready()
135 static int drv_scd30_read_raw_data(i2c_dev_t *drv, integer_data_t *pdata) in drv_scd30_read_raw_data() argument
140 ret = scd30_check_data_ready(drv); in drv_scd30_read_raw_data()
158 static int drv_scd30_init_sensor(i2c_dev_t* drv) in drv_scd30_init_sensor() argument
[all …]
A Ddrv_gyro_st_l3gd20h.c91 UNUSED static int drv_gyro_st_l3gd20h_soft_reset(i2c_dev_t* drv) in drv_gyro_st_l3gd20h_soft_reset() argument
110 static int drv_gyro_st_l3gd20h_validate_id(i2c_dev_t* drv, uint8_t id_value) in drv_gyro_st_l3gd20h_validate_id() argument
115 if(drv == NULL){ in drv_gyro_st_l3gd20h_validate_id()
131 static int drv_gyro_st_l3gd20h_set_bdu(i2c_dev_t* drv) in drv_gyro_st_l3gd20h_set_bdu() argument
136 ret = sensor_i2c_read(drv, L3GD20H_GYRO_CTRL4, &value, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_gyro_st_l3gd20h_set_bdu()
146 ret = sensor_i2c_write(drv, L3GD20H_GYRO_CTRL4, &value, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_gyro_st_l3gd20h_set_bdu()
153 static int drv_gyro_st_l3gd20h_set_power_mode(i2c_dev_t* drv, dev_power_mode_e mode) in drv_gyro_st_l3gd20h_set_power_mode() argument
158 ret = sensor_i2c_read(drv, L3GD20H_GYRO_CTRL1, &value, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_gyro_st_l3gd20h_set_power_mode()
216 static int drv_gyro_st_l3gd20h_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_gyro_st_l3gd20h_set_odr() argument
248 ret = sensor_i2c_write(drv, L3GD20H_GYRO_CTRL1, &odr, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_gyro_st_l3gd20h_set_odr()
[all …]
A Ddrv_acc_st_lis2dw12.c135 if(drv == NULL){ in drv_acc_st_lis2dw12_validate_id()
217 static int drv_acc_st_lis2dw12_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_st_lis2dw12_set_odr() argument
237 static int drv_acc_st_lis2dw12_set_range(i2c_dev_t* drv, uint32_t range) in drv_acc_st_lis2dw12_set_range() argument
284 static int drv_acc_st_lis2dw12_set_bdu(i2c_dev_t* drv) in drv_acc_st_lis2dw12_set_bdu() argument
302 static int drv_acc_st_lis2dw12_st_discard(i2c_dev_t* drv) in drv_acc_st_lis2dw12_st_discard() argument
335 static int drv_acc_st_lis2dw12_st_data(i2c_dev_t* drv,int32_t* data) in drv_acc_st_lis2dw12_st_data() argument
392 static int drv_acc_st_lis2dw12_self_test(i2c_dev_t* drv,int32_t* data) in drv_acc_st_lis2dw12_self_test() argument
455 ret = drv_acc_st_lis2dw12_st_discard(drv); in drv_acc_st_lis2dw12_self_test()
462 ret = drv_acc_st_lis2dw12_st_data(drv, out_nost); in drv_acc_st_lis2dw12_self_test()
478 ret = drv_acc_st_lis2dw12_st_discard(drv); in drv_acc_st_lis2dw12_self_test()
[all …]
A Ddrv_acc_gyro_senodia_sh200l.c164 static int drv_acc_gyro_senodia_sh200l_hw_init(i2c_dev_t* drv) in drv_acc_gyro_senodia_sh200l_hw_init() argument
249 static int drv_acc_gyro_senodia_sh200l_soft_reset(i2c_dev_t* drv) in drv_acc_gyro_senodia_sh200l_soft_reset() argument
257 sensor_i2c_write(drv, SH200L_SOFT_RESET, &value, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_acc_gyro_senodia_sh200l_soft_reset()
280 static int drv_acc_gyro_senodia_sh200l_validate_id(i2c_dev_t* drv, uint8_t id_value) in drv_acc_gyro_senodia_sh200l_validate_id() argument
286 if(drv == NULL){ in drv_acc_gyro_senodia_sh200l_validate_id()
414 static int drv_acc_senodia_sh200l_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_senodia_sh200l_set_odr() argument
461 static int drv_acc_senodia_sh200l_set_range(i2c_dev_t* drv, uint32_t range) in drv_acc_senodia_sh200l_set_range() argument
745 static int drv_gyro_senodia_sh200l_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_gyro_senodia_sh200l_set_odr() argument
765 static int drv_gyro_senodia_sh200l_set_range(i2c_dev_t* drv, uint32_t range) in drv_gyro_senodia_sh200l_set_range() argument
945 ret = sensor_i2c_write(drv, reg, &data, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_acc_gyro_senodia_sh200l_self_test()
[all …]
A Ddrv_acc_gyro_senodia_sh200q.c164 static int drv_acc_gyro_senodia_sh200q_hw_init(i2c_dev_t* drv) in drv_acc_gyro_senodia_sh200q_hw_init() argument
249 static int drv_acc_gyro_senodia_sh200q_soft_reset(i2c_dev_t* drv) in drv_acc_gyro_senodia_sh200q_soft_reset() argument
257 sensor_i2c_write(drv, SH200Q_SOFT_RESET, &value, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_acc_gyro_senodia_sh200q_soft_reset()
285 if(drv == NULL){ in drv_acc_gyro_senodia_sh200q_validate_id()
414 static int drv_acc_senodia_sh200q_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_acc_senodia_sh200q_set_odr() argument
460 static int drv_acc_senodia_sh200q_set_range(i2c_dev_t* drv, uint32_t range) in drv_acc_senodia_sh200q_set_range() argument
744 static int drv_gyro_senodia_sh200q_set_odr(i2c_dev_t* drv, uint32_t hz) in drv_gyro_senodia_sh200q_set_odr() argument
764 static int drv_gyro_senodia_sh200q_set_range(i2c_dev_t* drv, uint32_t range) in drv_gyro_senodia_sh200q_set_range() argument
944 ret = sensor_i2c_write(drv, reg, &data, I2C_DATA_LEN, I2C_OP_RETRIES); in drv_acc_gyro_senodia_sh200q_self_test()
964 ret = sensor_i2c_read(drv, SH200Q_OUTPUT_GYRO_X, &temp[0], 6, I2C_OP_RETRIES); in drv_acc_gyro_senodia_sh200q_self_test()
[all …]
A Ddrv_acc_mir3_da215.c79 if(drv == NULL){ in drv_acc_mir3_da215_validate_id()
125 static int drv_acc_mir3_da215_set_default_config(i2c_dev_t* drv) in drv_acc_mir3_da215_set_default_config() argument
131 ret = sensor_i2c_write(drv, NSA_REG_ENGINEERING_MODE, in drv_acc_mir3_da215_set_default_config()
138 ret = sensor_i2c_write(drv, NSA_REG_ENGINEERING_MODE, in drv_acc_mir3_da215_set_default_config()
145 ret = sensor_i2c_write(drv, NSA_REG_ENGINEERING_MODE, in drv_acc_mir3_da215_set_default_config()
164 ret = sensor_i2c_write(drv, NSA_REG_G_RANGE, in drv_acc_mir3_da215_set_default_config()
171 ret = sensor_i2c_write(drv, NSA_REG_INT_PIN_CONFIG, in drv_acc_mir3_da215_set_default_config()
177 ret = drv_acc_mir3_da215_set_power_mode(drv, DEV_SLEEP); in drv_acc_mir3_da215_set_default_config()
183 ret = sensor_i2c_write(drv, NSA_REG_ODR_AXIS_DISABLE, in drv_acc_mir3_da215_set_default_config()
190 ret = sensor_i2c_write(drv, NSA_REG_INTERRUPT_MAPPING2, in drv_acc_mir3_da215_set_default_config()
[all …]
A Ddrv_acc_mir3_da213B.c79 if(drv == NULL){ in drv_acc_mir3_da213B_validate_id()
121 static int drv_acc_mir3_da213B_set_default_config(i2c_dev_t* drv) in drv_acc_mir3_da213B_set_default_config() argument
127 ret = sensor_i2c_write(drv, NSA_REG_ENGINEERING_MODE, in drv_acc_mir3_da213B_set_default_config()
134 ret = sensor_i2c_write(drv, NSA_REG_ENGINEERING_MODE, in drv_acc_mir3_da213B_set_default_config()
141 ret = sensor_i2c_write(drv, NSA_REG_ENGINEERING_MODE, in drv_acc_mir3_da213B_set_default_config()
160 ret = sensor_i2c_write(drv, NSA_REG_G_RANGE, in drv_acc_mir3_da213B_set_default_config()
167 ret = sensor_i2c_write(drv, NSA_REG_INT_PIN_CONFIG, in drv_acc_mir3_da213B_set_default_config()
173 ret = drv_acc_mir3_da213B_set_power_mode(drv, DEV_SLEEP); in drv_acc_mir3_da213B_set_default_config()
179 ret = sensor_i2c_write(drv, NSA_REG_ODR_AXIS_DISABLE, in drv_acc_mir3_da213B_set_default_config()
186 ret = sensor_i2c_write(drv, NSA_REG_INTERRUPT_MAPPING2, in drv_acc_mir3_da213B_set_default_config()
[all …]
/AliOS-Things-master/components/netmgr/src/
A Dnetmgr_nbiot.c40 netdev_driver_t *drv = dev->drv; in netmgr_nbiot_info() local
41 nbiot_driver_t *nbiot_drv = (nbiot_driver_t *)drv->link_ops; in netmgr_nbiot_info()
42 net_ops_t *net_drv = drv->net_ops; in netmgr_nbiot_info()
55 printf("\n%s%d\tLink encap:NBIOT\n", drv->drv.name, drv->drv.device_id); in netmgr_nbiot_info()
81 netdev_driver_t *drv = dev->drv; in netmgr_nbiot_service() local
82 nbiot_driver_t *nbiot_drv = (nbiot_driver_t *)drv->link_ops; in netmgr_nbiot_service()
104 netdev_driver_t *drv = dev->drv; in netmgr_nbiot_reset() local
106 nbiot_driver_t *eth_drv = (nbiot_driver_t *)drv->link_ops; in netmgr_nbiot_reset()
A Dnetmgr_gprs.c26 netdev_driver_t *drv = dev->drv; in netmgr_gprs_provision() local
28 gprs_driver_t *gprs_drv = (gprs_driver_t *)drv->link_ops; in netmgr_gprs_provision()
55 netdev_driver_t *drv = dev->drv; in netmgr_gprs_reset() local
57 gprs_driver_t *gprs_drv = (gprs_driver_t *)drv->link_ops; in netmgr_gprs_reset()
70 netdev_driver_t *drv = dev->drv; in netmgr_gprs_info() local
71 gprs_driver_t *gprs_drv = (gprs_driver_t *)drv->link_ops; in netmgr_gprs_info()
72 net_ops_t *net_drv = drv->net_ops; in netmgr_gprs_info()
85 printf("\n%s%d\tLink encap:GPRS\n", drv->drv.name, drv->drv.device_id); in netmgr_gprs_info()

Completed in 63 milliseconds

12345