Home
last modified time | relevance | path

Searched refs:battery_level (Results 1 – 9 of 9) sorted by relevance

/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/src/ble/profile/server/
A Dbas.c33 static uint8_t battery_level = 0; variable
157 battery_level = p_value[0]; in bas_set_parameter()
185 bool bas_battery_level_value_notify(uint8_t conn_id, uint8_t service_id, uint8_t battery_level) in bas_battery_level_value_notify() argument
187 return server_send_data(conn_id, service_id, GATT_SVC_BAS_BATTERY_LEVEL_INDEX, &battery_level, in bas_battery_level_value_notify()
188 sizeof(battery_level), GATT_PDU_TYPE_ANY); in bas_battery_level_value_notify()
211 uint8_t battery_level) in bas_battery_level_value_read_confirm() argument
217 &battery_level, sizeof(battery_level), APP_RESULT_SUCCESS); in bas_battery_level_value_read_confirm()
265 *pp_value = &battery_level; in bas_attr_read_cb()
266 *p_length = sizeof(battery_level); in bas_attr_read_cb()
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/homepage/
A Dhomepage.c16 static int battery_level = 0; variable
139 if (0 == get_battery(&battery_level, &volage)) { in homepage_task()
140 LOGD(EDU_TAG, "get_battery success:%d mv,level :%d \n", volage, battery_level); in homepage_task()
141 OLED_Icon_Draw(110, 0, &icon_battery_20_12[battery_level], 0); in homepage_task()
A Dhomepage.md204 if (0 == get_battery(&battery_level))
206 //printf("get_battery success %d\n", battery_level);
207 OLED_Icon_Draw(110, 0, &icon_battery_20_12[battery_level], 0);
/AliOS-Things-master/components/ble_host/ble_profiles/
A Dbas.c54 e->data = &bas->battery_level; in event_char_read()
134 bas->battery_level = 0xFF; in bas_init()
153 if (level != bas->battery_level) { in bas_level_update()
154 bas->battery_level = level; in bas_level_update()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/inc/bluetooth/profile/server/
A Dbas.h192 bool bas_battery_level_value_notify(uint8_t conn_id, T_SERVER_ID service_id, uint8_t battery_level);
219 uint8_t battery_level);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/inc/bluetooth/profile/client/
A Dbas_client.h109 uint8_t battery_level; member
129 uint8_t battery_level; member
/AliOS-Things-master/components/ble_host/ble_profiles/include/yoc/
A Dbas.h12 uint8_t battery_level; member
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/example/ble_peripheral/
A Dperipheral_app.c570 uint8_t battery_level = 90; in app_profile_callback() local
571 APP_PRINT_INFO1("BAS_READ_BATTERY_LEVEL: battery_level %d", battery_level); in app_profile_callback()
572 bas_set_parameter(BAS_PARAM_BATTERY_LEVEL, 1, &battery_level); in app_profile_callback()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/src/ble/profile/client/
A Dbas_client.c507 cb_data.cb_content.read_result.data.battery_level = *p_value; in bas_client_read_result_cb()
534 cb_data.cb_content.notify_data.battery_level = *p_value; in bas_client_notify_ind_cb()

Completed in 22 milliseconds