Home
last modified time | relevance | path

Searched refs:BIT_MASK (Results 1 – 17 of 17) sorted by relevance

/AliOS-Things-master/hardware/chip/haas1000/drivers/net/net_os/
A Dnet_bitops.h6 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) macro
29 unsigned long mask = BIT_MASK(nr); in __clear_bit()
37 unsigned long mask = BIT_MASK(nr); in __set_bit()
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/api/mesh/
A Dcfg_cli.h90 #define BT_MESH_PUB_PERIOD_100MS(steps) ((steps) & BIT_MASK(6))
100 #define BT_MESH_PUB_PERIOD_SEC(steps) (((steps) & BIT_MASK(6)) | (1 << 6))
111 #define BT_MESH_PUB_PERIOD_10SEC(steps) (((steps) & BIT_MASK(6)) | (2 << 6))
122 #define BT_MESH_PUB_PERIOD_10MIN(steps) (((steps) & BIT_MASK(6)) | (3 << 6))
A Daccess.h216 #define BT_MESH_TRANSMIT_COUNT(transmit) (((transmit) & (u8_t)BIT_MASK(3)))
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/
A Dble_transport.h13 #define TRANS_CTL_OP_MASK ((u8_t)BIT_MASK(7))
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Daccess.c91 period = K_MSEC((mod->pub->period & BIT_MASK(6)) * 100); in bt_mesh_model_pub_period_get()
95 period = K_SECONDS(mod->pub->period & BIT_MASK(6)); in bt_mesh_model_pub_period_get()
99 period = K_SECONDS((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()
103 period = K_MINUTES((mod->pub->period & BIT_MASK(6)) * 10); in bt_mesh_model_pub_period_get()
A Dprovisioner_proxy.c49 #define PDU_TYPE(data) (data[0] & BIT_MASK(6))
62 #define PDU_HDR(sar, type) (sar << 6 | (type & BIT_MASK(6)))
A Dfriend.c777 #define RSSI_FACT(crit) (((crit) >> 5) & (u8_t)BIT_MASK(2))
778 #define RECV_WIN_FACT(crit) (((crit) >> 3) & (u8_t)BIT_MASK(2))
779 #define MIN_QUEUE_SIZE_LOG(crit) ((crit) & (u8_t)BIT_MASK(3))
A Dtransport.c54 #define AID_MASK ((u8_t)(BIT_MASK(6)))
1252 … (net_rx->seq - ((((net_rx->seq & BIT_MASK(14)) - seq_zero)) & BIT_MASK(13)))); in trans_seg()
A Dproxy.c43 #define PDU_TYPE(data) (data[0] & BIT_MASK(6))
56 #define PDU_HDR(sar, type) (sar << 6 | (type & BIT_MASK(6)))
A Dcfg_srv.c1154 cred_flag = ((pub_app_idx >> 12) & BIT_MASK(1)); in mod_pub_set()
1155 pub_app_idx &= BIT_MASK(12); in mod_pub_set()
1298 cred_flag = ((pub_app_idx >> 12) & BIT_MASK(1)); in mod_pub_va_set()
1299 pub_app_idx &= BIT_MASK(12); in mod_pub_va_set()
A Dprovisioner_prov.c698 unprov_dev[i].bearer = add_dev->bearer & BIT_MASK(2); in bt_mesh_provisioner_add_unprov_dev()
699 unprov_dev[i].flags = flags & BIT_MASK(3); in bt_mesh_provisioner_add_unprov_dev()
719 unprov_dev[i].bearer = add_dev->bearer & BIT_MASK(2); in bt_mesh_provisioner_add_unprov_dev()
720 unprov_dev[i].flags = flags & BIT_MASK(3); in bt_mesh_provisioner_add_unprov_dev()
A Dcrypto.c172 out[0] = tmp[15] & BIT_MASK(6); in bt_mesh_k4()
A Dcfg_cli.c483 param->pub->app_idx &= BIT_MASK(12); in mod_pub_status()
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Djdhuff.c142 (((int) (get_buffer >> (bits_left -= (nbits)))) & BIT_MASK(nbits))
145 (((int) (get_buffer >> (bits_left - (nbits)))) & BIT_MASK(nbits))
572 #define BIT_MASK(nbits) ((1<<(nbits))-1) macro
577 #define BIT_MASK(nbits) bmask[nbits] macro
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/
A Dhci.h49 #define bt_acl_handle(h) ((h) & BIT_MASK(12))
51 #define bt_acl_flags_pb(f) ((f) & BIT_MASK(2))
218 #define BT_OGF(opcode) (((opcode) >> 10) & BIT_MASK(6))
220 #define BT_OCF(opcode) ((opcode) & BIT_MASK(10))
/AliOS-Things-master/components/ble_host/bt_host/port/include/misc/
A Dutil.h222 #define BIT_MASK(n) (BIT(n) - 1) macro
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dhci_core.c9517 cp->ch_map[4] = chan_map[4] & BIT_MASK(5); in bt_le_set_chan_map()
9524 ch_map[4] = chan_map[4] & BIT_MASK(5); in bt_le_set_chan_map()

Completed in 77 milliseconds