Home
last modified time | relevance | path

Searched refs:cur_index (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjreversed.c37 mp_uint_t cur_index; // current index, plus 1; 0=no more, 1=last one (index 0) member
53 o->cur_index = mp_obj_get_int(mp_obj_len(args[0])); // start at the end of the sequence in reversed_make_new()
63 if (self->cur_index == 0) { in reversed_iternext()
68 self->cur_index -= 1; in reversed_iternext()
69 return mp_obj_subscr(self->seq, MP_OBJ_NEW_SMALL_INT(self->cur_index), MP_OBJ_SENTINEL); in reversed_iternext()
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/common/
A Dmesh_model.c147 static u8_t cur_index = 0; in mesh_check_tid() local
148 u8_t i = cur_index; in mesh_check_tid()
153 while (i < cur_index + RECV_MSG_TID_QUEUE_SIZE) { in mesh_check_tid()
167 if (i < cur_index + RECV_MSG_TID_QUEUE_SIZE) { in mesh_check_tid()
170 tid_queue[cur_index].tid = tid; in mesh_check_tid()
171 tid_queue[cur_index].addr = src_addr; in mesh_check_tid()
172 tid_queue[cur_index].time = cur_time; in mesh_check_tid()
173 cur_index++; in mesh_check_tid()
174 cur_index %= RECV_MSG_TID_QUEUE_SIZE; in mesh_check_tid()
/AliOS-Things-master/components/genie_service/core/src/
A Dgenie_transport.c223 static uint8_t cur_index = 0; in genie_transport_check_tid() local
224 uint8_t i = cur_index; in genie_transport_check_tid()
234 while (i < cur_index + RECV_MSG_TID_QUEUE_SIZE) in genie_transport_check_tid()
247 if (i < cur_index + RECV_MSG_TID_QUEUE_SIZE) in genie_transport_check_tid()
253 tid_queue[cur_index].tid = tid; in genie_transport_check_tid()
254 tid_queue[cur_index].elemid = elem_id; in genie_transport_check_tid()
255 tid_queue[cur_index].addr = src_addr; in genie_transport_check_tid()
256 tid_queue[cur_index].time = cur_time; in genie_transport_check_tid()
257 cur_index++; in genie_transport_check_tid()
258 cur_index %= RECV_MSG_TID_QUEUE_SIZE; in genie_transport_check_tid()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/
A Dwifi_wps_config.c949 for(int cur_index = 0; cur_index < cred_cnt; cur_index++){ in wps_start() local
952 if(dev_cred[cur_index].ssid_len == 0) in wps_start()
956 …if((dev_cred[cur_index].encr_type & WPS_ENCR_TYPE_AES) && (dev_cred[cur_index].encr_type & WPS_ENC… in wps_start()
958 else if(dev_cred[cur_index].encr_type & WPS_ENCR_TYPE_AES) in wps_start()
960 else if(dev_cred[cur_index].encr_type & WPS_ENCR_TYPE_TKIP) in wps_start()
964 …if((dev_cred[cur_index].encr_type & WPS_ENCR_TYPE_AES) && (dev_cred[cur_index].encr_type & WPS_ENC… in wps_start()
966 else if(dev_cred[cur_index].encr_type & WPS_ENCR_TYPE_AES) in wps_start()
968 else if(dev_cred[cur_index].encr_type & WPS_ENCR_TYPE_TKIP) in wps_start()
971 else if(dev_cred[cur_index].auth_type & (WPS_AUTH_TYPE_OPEN | WPS_AUTH_TYPE_SHARED)) { in wps_start()
972 if(dev_cred[cur_index].encr_type & WPS_ENCR_TYPE_WEP) in wps_start()
[all …]

Completed in 10 milliseconds