Home
last modified time | relevance | path

Searched full:pdu (Results 1 – 25 of 60) sorted by relevance

123

/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/src/
H A Dble_ll_ctrl.c50 * 2) Should we create pool of control pdu's?. Dont need more
56 * the pdu or it does not support data length extension, the LL_UNKNOWN_RSP
57 * pdu is sent. That needs to be processed...
76 * This array contains the length of the CtrData field in LL control PDU's.
78 * control PDU, so total data channel payload length for the control pdu is
152 * Create a LL_REJECT_EXT_IND pdu.
156 * @param ctrdata: Pointer to where CtrData starts in pdu
216 * Process a received LL_PING_RSP control pdu.
360 * Called to make a connection update request LL control PDU
673 * Create a LL_PHY_UPDATE_IND pdu
[all …]
H A Dble_ll_conn.c120 /* This is a dummy structure we use for the empty PDU */
298 * Called to determine if the received PDU is an empty PDU or not.
857 * Callback for slave when it transmits a data pdu and the connection event
1030 * Called when we want to send a data channel pdu inside a connection event.
1103 * We need to check if we are retrying a pdu or if there is a pdu on in ble_ll_conn_tx_data_pdu()
1113 * If we dont have a pdu we have previously transmitted, take it off in ble_ll_conn_tx_data_pdu()
1125 * kinds of LL control PDU's. If none is enqueued, send empty pdu! in ble_ll_conn_tx_data_pdu()
1185 /* Empty PDU here. NOTE: header byte gets set later */ in ble_ll_conn_tx_data_pdu()
1259 /* If we send an empty PDU we need to initialize the header */ in ble_ll_conn_tx_data_pdu()
1264 * when we have an empty pdu. in ble_ll_conn_tx_data_pdu()
[all …]
H A Dble_ll.c248 * - PDU, CRC, TERM2 (coded as S=2 or S=8)
258 * Counts the number of advertising PDU's received, by type. For advertising
259 * PDU's that contain a destination address, we still count these packets even
302 * Allocate a pdu (chain) for reception.
732 /* Note: pdu type wont get used unless this is an advertising pdu */ in ble_ll_rx_pkt_in()
738 /* Process the data or advertising pdu */ in ble_ll_rx_pkt_in()
739 /* Process the PDU */ in ble_ll_rx_pkt_in()
775 * @param rxpdu Pointer to received PDU
849 * Called upon start of received PDU
867 /* Advertising channel PDU */ in ble_ll_rx_start()
[all …]
H A Dble_ll_scan.c292 * ble ll scan req pdu make
294 * Construct a SCAN_REQ PDU.
314 /* Construct first PDU header byte */ in ble_ll_scan_req_pdu_make()
320 /* Get the advertising PDU */ in ble_ll_scan_req_pdu_make()
553 /* Check appropriate flag (based on type of PDU) */ in ble_ll_scan_is_dup_adv()
919 * the received PDU.
930 * @return int 0: pdu allowed by filter policy. 1: pdu not allowed
973 /* If device does not match let us skip this PDU. in ble_ll_scan_chk_filter_policy()
1624 * ble ll scan rx pdu start
1626 * Called when a PDU reception has started and the Link Layer is in the
[all …]
H A Dble_ll_adv.c71 * The length of the advertising PDU that will be sent. This does not
319 * Create the advertising legacy PDU
365 /* Set the PDU length in the state machine (includes header) */ in ble_ll_adv_legacy_pdu_make()
411 * Create the advertising PDU
478 * Create the AUX PDU
691 * Create a scan response PDU
716 * Create a AUX connect response PDU
1123 /* AdvA for 1st PDU in chain (i.e. AUX_ADV_IND or AUX_SCAN_RSP) */ in ble_ll_adv_aux_calculate()
1151 /* PDU payload should be full if chained */ in ble_ll_adv_aux_calculate()
1637 /* The event start time is when we start transmission of the adv PDU */ in ble_ll_adv_scheduled()
[all …]
/nrf52832-nimble/rt-thread/components/net/freemodbus/modbus/rtu/
H A Dmbrtu_m.c51 #define MB_SER_PDU_SIZE_CRC 2 /*!< Size of CRC field in PDU. */
52 #define MB_SER_PDU_ADDR_OFF 0 /*!< Offset of slave address in Ser-PDU. */
53 #define MB_SER_PDU_PDU_OFF 1 /*!< Offset of Modbus-PDU in Ser-PDU. */
174 /* Total length of Modbus-PDU is Modbus-Serial-Line-PDU minus in eMBMasterRTUReceive()
179 /* Return the start of the Modbus PDU to the caller. */ in eMBMasterRTUReceive()
207 /* First byte before the Modbus-PDU is the slave address. */ in eMBMasterRTUSend()
211 /* Now copy the Modbus-PDU into the Modbus-Serial-Line-PDU. */ in eMBMasterRTUSend()
215 /* Calculate CRC16 checksum for Modbus-Serial-Line-PDU. */ in eMBMasterRTUSend()
414 /* Get Modbus Master send PDU's buffer address pointer.*/
420 /* Set Modbus Master send PDU's buffer length.*/
[all …]
H A Dmbrtu.c49 #define MB_SER_PDU_SIZE_CRC 2 /*!< Size of CRC field in PDU. */
50 #define MB_SER_PDU_ADDR_OFF 0 /*!< Offset of slave address in Ser-PDU. */
51 #define MB_SER_PDU_PDU_OFF 1 /*!< Offset of Modbus-PDU in Ser-PDU. */
167 /* Total length of Modbus-PDU is Modbus-Serial-Line-PDU minus in eMBRTUReceive()
172 /* Return the start of the Modbus PDU to the caller. */ in eMBRTUReceive()
198 /* First byte before the Modbus-PDU is the slave address. */ in eMBRTUSend()
202 /* Now copy the Modbus-PDU into the Modbus-Serial-Line-PDU. */ in eMBRTUSend()
206 /* Calculate CRC16 checksum for Modbus-Serial-Line-PDU. */ in eMBRTUSend()
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/
H A Dcrypto.c25 #define NET_MIC_LEN(pdu) (((pdu)[1] & 0x80) ? 8 : 4) argument
517 static void create_proxy_nonce(u8_t nonce[13], const u8_t *pdu, in create_proxy_nonce() argument
527 nonce[2] = pdu[2]; in create_proxy_nonce()
528 nonce[3] = pdu[3]; in create_proxy_nonce()
529 nonce[4] = pdu[4]; in create_proxy_nonce()
532 nonce[5] = pdu[5]; in create_proxy_nonce()
533 nonce[6] = pdu[6]; in create_proxy_nonce()
544 static void create_net_nonce(u8_t nonce[13], const u8_t *pdu, in create_net_nonce() argument
551 nonce[1] = pdu[1]; in create_net_nonce()
554 nonce[2] = pdu[2]; in create_net_nonce()
[all …]
H A Dnet.c34 /* Minimum valid Mesh Network PDU length. The Network headers
45 #define IVI(pdu) ((pdu)[0] >> 7) argument
46 #define NID(pdu) ((pdu)[0] & 0x7f) argument
47 #define CTL(pdu) ((pdu)[1] >> 7) argument
48 #define TTL(pdu) ((pdu)[1] & 0x7f) argument
49 #define SEQ(pdu) (((u32_t)(pdu)[2] << 16) | \ argument
50 ((u32_t)(pdu)[3] << 8) | (u32_t)(pdu)[4]);
51 #define SRC(pdu) (sys_get_be16(&(pdu)[5])) argument
52 #define DST(pdu) (sys_get_be16(&(pdu)[7])) argument
108 static u64_t msg_hash(struct bt_mesh_net_rx *rx, struct os_mbuf *pdu) in msg_hash() argument
[all …]
H A Dproxy.c337 BT_WARN("Too short proxy configuration PDU"); in proxy_cfg()
480 BT_INFO("Mesh Network PDU"); in proxy_complete_pdu()
484 BT_INFO("Mesh Beacon PDU"); in proxy_complete_pdu()
488 BT_INFO("Mesh Configuration PDU"); in proxy_complete_pdu()
494 BT_INFO("Mesh Provisioning PDU"); in proxy_complete_pdu()
520 BT_WARN("Too small Proxy PDU"); in proxy_recv()
526 BT_WARN("Proxy PDU type doesn't match GATT service"); in proxy_recv()
531 BT_WARN("Too big proxy PDU"); in proxy_recv()
538 BT_WARN("Complete PDU while a pending incomplete one"); in proxy_recv()
549 BT_WARN("First PDU while a pending incomplete one"); in proxy_recv()
[all …]
H A Dprov.c117 u8_t expect; /* Next expected PDU */
1026 u8_t pdu[25]; in prov_data() local
1054 err = bt_mesh_prov_decrypt(session_key, nonce, data, pdu); in prov_data()
1070 net_idx = sys_get_be16(&pdu[16]); in prov_data()
1071 flags = pdu[18]; in prov_data()
1072 iv_index = sys_get_be32(&pdu[19]); in prov_data()
1073 addr = sys_get_be16(&pdu[23]); in prov_data()
1091 bt_mesh_provision(pdu, net_idx, flags, iv_index, addr, dev_key); in prov_data()
1302 BT_ERR("Unknown provisioning PDU type 0x%02x", type); in prov_msg_recv()
1403 BT_ERR("Ignoring zero-length provisioning PDU"); in gen_prov_start()
[all …]
/nrf52832-nimble/rt-thread/components/net/freemodbus/modbus/include/
H A Dmbframe.h40 * shown for a Modbus RTU/ASCII frame. Note that the Modbus PDU is not
44 * <------------------------ MODBUS SERIAL LINE PDU (1) ------------------->
45 * <----------- MODBUS PDU (1') ---------------->
64 #define MB_PDU_SIZE_MAX 253 /*!< Maximum size of a PDU. */
66 #define MB_PDU_FUNC_OFF 0 /*!< Offset of function code in PDU. */
67 #define MB_PDU_DATA_OFF 1 /*!< Offset for response data in PDU. */
/nrf52832-nimble/rt-thread/components/net/freemodbus/modbus/ascii/
H A Dmbascii.c54 #define MB_SER_PDU_SIZE_LRC 1 /*!< Size of LRC field in PDU. */
55 #define MB_SER_PDU_ADDR_OFF 0 /*!< Offset of slave address in Ser-PDU. */
56 #define MB_SER_PDU_PDU_OFF 1 /*!< Offset of Modbus-PDU in Ser-PDU. */
168 /* Total length of Modbus-PDU is Modbus-Serial-Line-PDU minus in eMBASCIIReceive()
173 /* Return the start of the Modbus PDU to the caller. */ in eMBASCIIReceive()
197 /* First byte before the Modbus-PDU is the slave address. */ in eMBASCIISend()
201 /* Now copy the Modbus-PDU into the Modbus-Serial-Line-PDU. */ in eMBASCIISend()
205 /* Calculate LRC checksum for Modbus-Serial-Line-PDU. */ in eMBASCIISend()
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/include/controller/
H A Dble_ll_sched.h37 * This assumes maximum sized advertising PDU and scan response PDU.
40 * we just need to receive a connect request PDU: IFS + CONNECT_REQ = 150 + 352.
43 * NOTE: The advertising PDU transmit time is NOT included here since we know
63 * size PDU, including an IFS time before each. The actual time is
168 /* Reschedule and advertising pdu */
H A Dble_ll.h269 * -> PDU (2 to 257 octets)
285 * Advertising PDU format:
287 * -> LSB contains pdu type, txadd and rxadd bits.
297 /* Advertising channel PDU types */
418 /* Calculate the amount of time in microseconds a PDU with payload length of
422 /* Calculate maximum octets of PDU payload which can be transmitted during
443 * Allocate a pdu (chain) for reception.
445 * @param len Length of PDU. This includes the PDU header as well as payload.
483 /* Hand received pdu's to LL task */
H A Dble_ll_scan.h184 /* Called when Link Layer starts to receive a PDU and is in scanning state */
187 /* Called when Link Layer has finished receiving a PDU while scanning */
190 /* Process a scan response PDU */
208 /* Returns the PDU allocated by the scanner */
H A Dble_phy.h85 /* Maximun PDU length. Includes LL header of 2 bytes and 255 bytes payload. */
118 /* Copies the received PHY buffer into the allocated pdu */
164 * Returns the maximum supported tx/rx PDU payload size, in bytes, for data
166 * that the data channel PDU is composed of a 2-byte header, the payload, and
H A Dble_ll_adv.h156 /* Called on rx pdu start when in advertising state */
159 /* Called on rx pdu end when in advertising state */
/nrf52832-nimble/rt-thread/components/net/freemodbus/port/
H A Dportevent_m.c120 * @param pucPDUData PDU buffer data
121 * @param ucPDULength PDU buffer length
142 * @param pucPDUData PDU buffer data
143 * @param ucPDULength PDU buffer length
164 * @param pucPDUData PDU buffer data
165 * @param ucPDULength PDU buffer length
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/
H A Dsyscfg.yml112 # maximum size of the PDU's that will be sent and/or received in a
115 description: 'The maximum PDU size that can be sent/received'
118 description: 'The maximum supported received PDU size'
121 description: 'The maximum supported transmit PDU size'
125 Used to set the initial maximum transmit PDU size in a
235 size of tx/rx pdu's used in a connection. This option has only
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/apps/snmp/
H A Dsnmp_msg.h60 /* version defines used in PDU */
106 /* Usually response-pdu (2). When snmpv3 errors are detected report-pdu(8) */
H A Dsnmp_msg.c780 /* decode main container consisting of version, community and PDU */ in snmp_parse_inbound_frame()
1094 /* 9) calculate max size of scoped pdu? in snmp_parse_inbound_frame()
1100 /* Scoped PDU in snmp_parse_inbound_frame()
1150 /* decode PDU type (next container level) */ in snmp_parse_inbound_frame()
1156 /* validate PDU type */ in snmp_parse_inbound_frame()
1159 /* GetRequest PDU */ in snmp_parse_inbound_frame()
1163 /* GetNextRequest PDU */ in snmp_parse_inbound_frame()
1167 /* GetBulkRequest PDU */ in snmp_parse_inbound_frame()
1174 /* SetRequest PDU */ in snmp_parse_inbound_frame()
1178 /* unsupported input PDU for this agent (no parse error) */ in snmp_parse_inbound_frame()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/lwip/
H A Dsnmp_msg.h133 /* encoding pdu length length */
148 /* encoding pdu length */
171 /* encoding pdu length length */
190 /* encoding pdu length */
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/apps/snmp/
H A Dsnmp_msg.c621 /* decode main container consisting of version, community and PDU */ in snmp_parse_inbound_frame()
824 /* Scoped PDU in snmp_parse_inbound_frame()
872 /* decode PDU type (next container level) */ in snmp_parse_inbound_frame()
878 /* validate PDU type */ in snmp_parse_inbound_frame()
881 /* GetRequest PDU */ in snmp_parse_inbound_frame()
885 /* GetNextRequest PDU */ in snmp_parse_inbound_frame()
889 /* GetBulkRequest PDU */ in snmp_parse_inbound_frame()
896 /* SetRequest PDU */ in snmp_parse_inbound_frame()
900 /* unsupported input PDU for this agent (no parse error) */ in snmp_parse_inbound_frame()
901 LWIP_DEBUGF(SNMP_DEBUG, ("Unknown/Invalid SNMP PDU type received: %d", tlv.type)); \ in snmp_parse_inbound_frame()
[all …]
/nrf52832-nimble/rt-thread/components/net/freemodbus/modbus/tcp/
H A Dmbtcp.c53 * <----------- MODBUS PDU (1') ---------------->
146 * header includes the size of the Modbus PDU and the UID Byte. Therefore in eMBTCPSend()

123