/nrf52832-nimble/packages/NimBLE-latest/nimble/host/test/src/ |
H A D | ble_gatt_write_test.c | 126 int off; in ble_gatt_write_test_misc_long_good() local 142 off = 0; in ble_gatt_write_test_misc_long_good() 143 while (off < attr_len) { in ble_gatt_write_test_misc_long_good() 145 if (off + len > attr_len) { in ble_gatt_write_test_misc_long_good() 146 len = attr_len - off; in ble_gatt_write_test_misc_long_good() 151 100, off, ble_gatt_write_test_attr_value + off, len); in ble_gatt_write_test_misc_long_good() 155 2, 100, off, ble_gatt_write_test_attr_value + off, len); in ble_gatt_write_test_misc_long_good() 160 off += len; in ble_gatt_write_test_misc_long_good() 174 int off, int len); 182 int off; in ble_gatt_write_test_misc_long_bad() local [all …]
|
H A D | ble_att_clt_test.c | 107 int off; in TEST_CASE() local 114 off = 0; in TEST_CASE() 116 ble_att_find_info_rsp_write(buf + off, sizeof buf - off, &rsp); in TEST_CASE() 117 off += BLE_ATT_FIND_INFO_RSP_BASE_SZ; in TEST_CASE() 119 put_le16(buf + off, 1); in TEST_CASE() 120 off += 2; in TEST_CASE() 121 memcpy(buf + off, uuid128_1, 16); in TEST_CASE() 122 off += 16; in TEST_CASE() 125 buf, off); in TEST_CASE() 130 off = 0; in TEST_CASE() [all …]
|
H A D | ble_gatt_read_test.c | 208 int off; in ble_gatt_read_test_misc_uuid_rx_rsp_good() local 222 off = BLE_ATT_READ_TYPE_RSP_BASE_SZ; in ble_gatt_read_test_misc_uuid_rx_rsp_good() 229 put_le16(buf + off, attrs[i].handle); in ble_gatt_read_test_misc_uuid_rx_rsp_good() 230 off += 2; in ble_gatt_read_test_misc_uuid_rx_rsp_good() 232 memcpy(buf + off, attrs[i].value, attrs[i].value_len); in ble_gatt_read_test_misc_uuid_rx_rsp_good() 233 off += attrs[i].value_len; in ble_gatt_read_test_misc_uuid_rx_rsp_good() 237 buf, off); in ble_gatt_read_test_misc_uuid_rx_rsp_good() 344 int off; in ble_gatt_read_test_misc_long_verify_good() local 359 off = 0; in ble_gatt_read_test_misc_long_verify_good() 367 if (off == 0) { in ble_gatt_read_test_misc_long_verify_good() [all …]
|
H A D | ble_gatt_disc_s_test.c | 64 int off; in ble_gatt_disc_s_test_misc_rx_all_rsp_once() local 74 off = BLE_ATT_READ_GROUP_TYPE_RSP_BASE_SZ; in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 88 if (off + BLE_ATT_READ_GROUP_TYPE_ADATA_SZ_16 > in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 95 if (off + BLE_ATT_READ_GROUP_TYPE_ADATA_SZ_128 > in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 103 put_le16(buf + off, services[i].start_handle); in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 104 off += 2; in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 106 put_le16(buf + off, services[i].end_handle); in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 107 off += 2; in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 109 ble_uuid_flat(services[i].uuid, buf + off); in ble_gatt_disc_s_test_misc_rx_all_rsp_once() 110 off += ble_uuid_length(services[i].uuid); in ble_gatt_disc_s_test_misc_rx_all_rsp_once() [all …]
|
H A D | ble_gatt_find_s_test.c | 98 int off; in ble_gatt_find_s_test_misc_rx_read_type() local 104 off = BLE_ATT_READ_TYPE_RSP_BASE_SZ; in ble_gatt_find_s_test_misc_rx_read_type() 119 TEST_ASSERT_FATAL(off + rsp.batp_length <= sizeof buf); in ble_gatt_find_s_test_misc_rx_read_type() 121 put_le16(buf + off, entries[i].inc_handle); in ble_gatt_find_s_test_misc_rx_read_type() 122 off += 2; in ble_gatt_find_s_test_misc_rx_read_type() 124 put_le16(buf + off, entries[i].start_handle); in ble_gatt_find_s_test_misc_rx_read_type() 125 off += 2; in ble_gatt_find_s_test_misc_rx_read_type() 127 put_le16(buf + off, entries[i].end_handle); in ble_gatt_find_s_test_misc_rx_read_type() 128 off += 2; in ble_gatt_find_s_test_misc_rx_read_type() 131 put_le16(buf + off, ble_uuid_u16(entries[i].uuid)); in ble_gatt_find_s_test_misc_rx_read_type() [all …]
|
H A D | ble_hs_test_util.c | 902 int off; in ble_hs_test_util_rx_att_read_mult_req() local 908 off = BLE_ATT_READ_MULT_REQ_BASE_SZ; in ble_hs_test_util_rx_att_read_mult_req() 910 put_le16(buf + off, handles[i]); in ble_hs_test_util_rx_att_read_mult_req() 911 off += 2; in ble_hs_test_util_rx_att_read_mult_req() 915 buf, off); in ble_hs_test_util_rx_att_read_mult_req() 1246 int off; in ble_hs_test_util_verify_tx_find_info_rsp() local 1249 off = 0; in ble_hs_test_util_verify_tx_find_info_rsp() 1254 rc = os_mbuf_copydata(om, off, sizeof buf, buf); in ble_hs_test_util_verify_tx_find_info_rsp() 1256 off += sizeof buf; in ble_hs_test_util_verify_tx_find_info_rsp() 1261 rc = os_mbuf_copydata(om, off, 2, &handle); in ble_hs_test_util_verify_tx_find_info_rsp() [all …]
|
H A D | ble_gatt_disc_d_test.c | 57 int off; in ble_gatt_disc_d_test_misc_rx_rsp_once() local 71 off = BLE_ATT_FIND_INFO_RSP_BASE_SZ; in ble_gatt_disc_d_test_misc_rx_rsp_once() 79 if (off + BLE_ATT_FIND_INFO_IDATA_16_SZ > in ble_gatt_disc_d_test_misc_rx_rsp_once() 86 if (off + BLE_ATT_FIND_INFO_IDATA_128_SZ > in ble_gatt_disc_d_test_misc_rx_rsp_once() 100 put_le16(buf + off, dscs[i].dsc_handle); in ble_gatt_disc_d_test_misc_rx_rsp_once() 101 off += 2; in ble_gatt_disc_d_test_misc_rx_rsp_once() 103 ble_uuid_flat(&dscs[i].dsc_uuid.u, buf + off); in ble_gatt_disc_d_test_misc_rx_rsp_once() 104 off += ble_uuid_length(&dscs[i].dsc_uuid.u); in ble_gatt_disc_d_test_misc_rx_rsp_once() 108 buf, off); in ble_gatt_disc_d_test_misc_rx_rsp_once()
|
H A D | ble_gatt_disc_c_test.c | 58 int off; in ble_gatt_disc_c_test_misc_rx_rsp_once() local 74 off = BLE_ATT_READ_TYPE_RSP_BASE_SZ; in ble_gatt_disc_c_test_misc_rx_rsp_once() 88 if (off + BLE_ATT_READ_TYPE_ADATA_SZ_16 > in ble_gatt_disc_c_test_misc_rx_rsp_once() 95 if (off + BLE_ATT_READ_TYPE_ADATA_SZ_128 > in ble_gatt_disc_c_test_misc_rx_rsp_once() 103 put_le16(buf + off, chars[i].def_handle); in ble_gatt_disc_c_test_misc_rx_rsp_once() 104 off += 2; in ble_gatt_disc_c_test_misc_rx_rsp_once() 106 buf[off] = chars[i].properties; in ble_gatt_disc_c_test_misc_rx_rsp_once() 107 off++; in ble_gatt_disc_c_test_misc_rx_rsp_once() 109 put_le16(buf + off, chars[i].val_handle); in ble_gatt_disc_c_test_misc_rx_rsp_once() 110 off += 2; in ble_gatt_disc_c_test_misc_rx_rsp_once() [all …]
|
H A D | ble_att_svr_test.c | 417 int off; in ble_att_svr_test_misc_verify_tx_read_mult_rsp() local 435 off = 1; in ble_att_svr_test_misc_verify_tx_read_mult_rsp() 437 attr_len = min(attrs[i].value_len, mtu - off); in ble_att_svr_test_misc_verify_tx_read_mult_rsp() 439 rc = os_mbuf_cmpf(om, off, attrs[i].value, attr_len); in ble_att_svr_test_misc_verify_tx_read_mult_rsp() 442 off += attr_len; in ble_att_svr_test_misc_verify_tx_read_mult_rsp() 445 TEST_ASSERT(OS_MBUF_PKTLEN(om) == off); in ble_att_svr_test_misc_verify_tx_read_mult_rsp() 499 int off; in ble_att_svr_test_misc_verify_tx_find_type_value_rsp() local 502 off = 0; in ble_att_svr_test_misc_verify_tx_find_type_value_rsp() 506 rc = os_mbuf_copydata(om, off, 1, &op); in ble_att_svr_test_misc_verify_tx_find_type_value_rsp() 508 off += 1; in ble_att_svr_test_misc_verify_tx_find_type_value_rsp() [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/src/ |
H A D | ble_hs_hci_evt.c | 230 int off; in ble_hs_hci_evt_num_completed_pkts() local 237 off = BLE_HCI_EVENT_HDR_LEN; in ble_hs_hci_evt_num_completed_pkts() 238 num_handles = data[off]; in ble_hs_hci_evt_num_completed_pkts() 243 off++; in ble_hs_hci_evt_num_completed_pkts() 253 handle = get_le16(data + off); in ble_hs_hci_evt_num_completed_pkts() 254 num_pkts = get_le16(data + off + 2); in ble_hs_hci_evt_num_completed_pkts() 255 off += (2 * sizeof(uint16_t)); in ble_hs_hci_evt_num_completed_pkts() 375 int off; in ble_hs_hci_evt_le_adv_rpt_first_pass() local 388 off = 2; /* Subevent code and num reports. */ in ble_hs_hci_evt_le_adv_rpt_first_pass() 391 off += 8; in ble_hs_hci_evt_le_adv_rpt_first_pass() [all …]
|
/nrf52832-nimble/nordic/nrfx/hal/ |
H A D | nrf_power.h | 131 …NRF_POWER_RESETREAS_OFF_MASK = POWER_RESETREAS_OFF_Msk , /*!< Bit mask of OFF field. */ … 198 NRF_POWER_ONRAM0, /**< Keep RAM block 0 on or off in system ON Mode */ 199 NRF_POWER_OFFRAM0, /**< Keep retention on RAM block 0 when RAM block is switched off */ 200 NRF_POWER_ONRAM1, /**< Keep RAM block 1 on or off in system ON Mode */ 201 NRF_POWER_OFFRAM1, /**< Keep retention on RAM block 1 when RAM block is switched off */ 202 NRF_POWER_ONRAM2, /**< Keep RAM block 2 on or off in system ON Mode */ 203 NRF_POWER_OFFRAM2, /**< Keep retention on RAM block 2 when RAM block is switched off */ 204 NRF_POWER_ONRAM3, /**< Keep RAM block 3 on or off in system ON Mode */ 205 NRF_POWER_OFFRAM3, /**< Keep retention on RAM block 3 when RAM block is switched off */ 215 …NRF_POWER_ONRAM0_MASK = 1U << NRF_POWER_ONRAM0, /**< Keep RAM block 0 on or off in system ON Mod… [all …]
|
H A D | nrf_vmc.h | 51 …///< Keep retention on RAM section S0 of the particular RAM block when RAM section is switched off. 52 …///< Keep retention on RAM section S1 of the particular RAM block when RAM section is switched off. 53 …///< Keep retention on RAM section S2 of the particular RAM block when RAM section is switched off. 54 …///< Keep retention on RAM section S3 of the particular RAM block when RAM section is switched off. 60 …_S0RETENTION_Msk, ///< Keep RAM section S0 of the particular RAM block on or off in System ON mode. 61 …_S1RETENTION_Msk, ///< Keep RAM section S1 of the particular RAM block on or off in System ON mode. 62 …_S2RETENTION_Msk, ///< Keep RAM section S2 of the particular RAM block on or off in System ON mode. 63 …_S3RETENTION_Msk, ///< Keep RAM section S3 of the particular RAM block on or off in System ON mode.
|
H A D | nrf_regulators.h | 57 * @brief Function for putting CPU in system OFF mode. 59 * This function puts the CPU into system off mode. 80 /* Solution for simulated System OFF in debug mode */ in nrf_regulators_system_off()
|
/nrf52832-nimble/rt-thread/libcpu/mips/x1000/ |
H A D | x1000_cpm.h | 503 #define cpm_inl(off) readl(CPM_BASE + off) argument 504 #define cpm_outl(val,off) writel(val, CPM_BASE + off) argument 505 #define cpm_test_bit(bit,off) (cpm_inl(off) & 0x1<<(bit)) argument 506 #define cpm_set_bit(bit,off) (cpm_outl((cpm_inl(off) | 0x1<<(bit)),off)) argument 507 #define cpm_clear_bit(bit,off) (cpm_outl(cpm_inl(off) & ~(0x1 << bit), off)) argument
|
/nrf52832-nimble/packages/NimBLE-latest/porting/nimble/src/ |
H A D | os_mbuf.c | 499 os_mbuf_off(const struct os_mbuf *om, int off, uint16_t *out_off) in os_mbuf_off() argument 514 if (cur->om_len > off || in os_mbuf_off() 515 (cur->om_len == off && next == NULL)) { in os_mbuf_off() 517 *out_off = off; in os_mbuf_off() 521 off -= cur->om_len; in os_mbuf_off() 527 os_mbuf_copydata(const struct os_mbuf *m, int off, int len, void *dst) in os_mbuf_copydata() argument 538 while (off > 0) { in os_mbuf_copydata() 543 if (off < m->om_len) in os_mbuf_copydata() 545 off -= m->om_len; in os_mbuf_copydata() 549 count = min(m->om_len - off, len); in os_mbuf_copydata() [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/services/bleuart/src/ |
H A D | ble_svc_uart.c | 195 int off = 0; in bleuart_uart_proc() local 209 if(off) in bleuart_uart_proc() 211 console_buf[off--] = 0; in bleuart_uart_proc() 217 console_buf[off++] = ch; in bleuart_uart_proc() 223 console_buf[off] = '\0'; in bleuart_uart_proc() 225 om = ble_hs_mbuf_from_flat(console_buf, off); in bleuart_uart_proc() 231 off = 0; in bleuart_uart_proc()
|
/nrf52832-nimble/rt-thread/components/net/uip/unix/ |
H A D | uip-conf.h | 117 * Logging on or off 124 * UDP support on or off 131 * UDP checksums on or off 138 * uIP statistics on or off
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/jffs2/cyg/compress/src/ |
H A D | inffast.c | 25 # define OFF 0 macro 28 # define OFF 1 macro 99 in = strm->next_in - OFF; 101 out = strm->next_out - OFF; 194 from = window - OFF; 213 from = window - OFF; 294 strm->next_in = in + OFF; 295 strm->next_out = out + OFF;
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/apps/httpd/makefsdata/ |
H A D | makefsdata.c | 176 …printf(" switch -e: exclude HTTP header from file (header is created at runtime, default is off)… in print_usage() 179 printf(" switch -c: precalculate checksums for all pages (default is off)" NEWLINE); in print_usage() 286 sprintf(curSubdir, ""); /* start off in web page's root directory - relative paths */ in main() 320 …fprintf(data_file, "/* FSDATA_FILE_ALIGNMENT: 0=off, 1=by variable, 2=by include */" NEWLINE "#ifn… in main() 581 size_t off = 0; in process_file_data() local 583 LWIP_ASSERT("file_buffer_c overflow", off < sizeof(file_buffer_c) - 5); in process_file_data() 584 sprintf(&file_buffer_c[off], "0x%02.2x,", file_data[i]); in process_file_data() 585 off += 5; in process_file_data() 587 LWIP_ASSERT("file_buffer_c overflow", off < sizeof(file_buffer_c) - NEWLINE_LEN); in process_file_data() 588 memcpy(&file_buffer_c[off], NEWLINE, NEWLINE_LEN); in process_file_data() [all …]
|
/nrf52832-nimble/rt-thread/components/net/uip/rt-thread/ |
H A D | uip-conf.h | 117 * Logging on or off 124 * UDP support on or off 131 * UDP checksums on or off 138 * uIP statistics on or off
|
/nrf52832-nimble/packages/NimBLE-latest/porting/nimble/include/os/ |
H A D | os_mbuf.h | 252 * packet off the mqueue and processes them. 262 * @param mq The mbuf queue to pull an element off of. 390 * @param off The absolute address to find. 398 struct os_mbuf *os_mbuf_off(const struct os_mbuf *om, int off, 403 * Copy data from an mbuf chain starting "off" bytes from the beginning, 407 * @param off The offset into the mbuf chain to begin copying from 414 int os_mbuf_copydata(const struct os_mbuf *m, int off, int len, void *dst); 482 * @param off The offset within the mbuf chain to start the 491 int os_mbuf_cmpf(const struct os_mbuf *om, int off, const void *data, int len); 554 * @param off The offset within the chain to copy to. [all …]
|
/nrf52832-nimble/rt-thread/src/ |
H A D | slab.c | 588 rt_int32_t off; in rt_malloc() local 616 for (off = 0, kup = btokup(z); off < zone_page_cnt; off ++) in rt_malloc() 619 kup->size = off; in rt_malloc() 629 off = sizeof(slab_zone); in rt_malloc() 636 off = (off + size - 1) & ~(size - 1); in rt_malloc() 638 off = (off + MIN_CHUNK_MASK) & ~MIN_CHUNK_MASK; in rt_malloc() 642 z->z_nmax = (zone_size - off) / size; in rt_malloc() 644 z->z_baseptr = (rt_uint8_t *)z + off; in rt_malloc()
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/apps/http/makefsdata/ |
H A D | makefsdata.c | 161 …printf(" switch -e: exclude HTTP header from file (header is created at runtime, default is off)… in print_usage() 165 printf(" switch -c: precalculate checksums for all pages (default is off)" NEWLINE); in print_usage() 289 curSubdir[0] = '\0'; /* start off in web page's root directory - relative paths */ in main() 322 …fprintf(data_file, "/* FSDATA_FILE_ALIGNMENT: 0=off, 1=by variable, 2=by include */" NEWLINE "#ifn… in main() 633 size_t off = 0; in process_file_data() local 636 LWIP_ASSERT("file_buffer_c overflow", off < sizeof(file_buffer_c) - 5); in process_file_data() 637 sprintf(&file_buffer_c[off], "0x%02x,", file_data[i]); in process_file_data() 638 off += 5; in process_file_data() 640 LWIP_ASSERT("file_buffer_c overflow", off < sizeof(file_buffer_c) - NEWLINE_LEN); in process_file_data() 641 memcpy(&file_buffer_c[off], NEWLINE, NEWLINE_LEN); in process_file_data() [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/include/host/ |
H A D | ble_store.h | 49 * peer_addr=BLE_ADDR_NONE means don't key off peer. 53 /** Key by ediv; ediv_rand_present=0 means don't key off ediv. */ 56 /** Key by rand_num; ediv_rand_present=0 means don't key off rand_num. */ 98 * peer_addr=BLE_ADDR_NONE means don't key off peer. 104 * chr_val_handle=0 means don't key off characteristic handle.
|
/nrf52832-nimble/nordic/nrfx/templates/nRF51/ |
H A D | nrfx_config.h | 31 // <0=> Off 116 // <0=> Off 190 // <0=> Off 315 // <0=> Off 409 // <0=> Off 481 // <0=> Off 629 // <0=> Off 705 // <0=> Off 807 // <0=> Off 897 // <0=> Off [all …]
|