btstack_event.h (26ecb6246e132bac46d8beb2dc7ecdfd12e649be) btstack_event.h (82b0bf4283e4d78dba294b1dfb64ed61a1cfe04b)
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 3531 unchanged lines hidden (view full) ---

3540 * @return pb_transport_cid
3541 * @note: btstack_type 2
3542 */
3543static inline uint16_t mesh_pb_prov_complete_event_get_pb_transport_cid(const uint8_t * event){
3544 return little_endian_read_16(event, 3);
3545}
3546
3547/**
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 3531 unchanged lines hidden (view full) ---

3540 * @return pb_transport_cid
3541 * @note: btstack_type 2
3542 */
3543static inline uint16_t mesh_pb_prov_complete_event_get_pb_transport_cid(const uint8_t * event){
3544 return little_endian_read_16(event, 3);
3545}
3546
3547/**
3548 * @brief Get field status from event MESH_PROXY_CONNECTED_EVENT
3549 * @param event packet
3550 * @return status
3551 * @note: btstack_type 1
3552 */
3553static inline uint8_t mesh_proxy_connected_event_get_status(const uint8_t * event){
3554 return event[3];
3555}
3556/**
3557 * @brief Get field con_handle from event MESH_PROXY_CONNECTED_EVENT
3558 * @param event packet
3559 * @return con_handle
3560 * @note: btstack_type H
3561 */
3562static inline hci_con_handle_t mesh_proxy_connected_event_get_con_handle(const uint8_t * event){
3563 return little_endian_read_16(event, 4);
3564}
3565
3566/**
3567 * @brief Get field con_handle from event MESH_PROXY_PDU_SENT_EVENT
3568 * @param event packet
3569 * @return con_handle
3570 * @note: btstack_type H
3571 */
3572static inline hci_con_handle_t mesh_proxy_pdu_sent_event_get_con_handle(const uint8_t * event){
3573 return little_endian_read_16(event, 3);
3574}
3575
3576/**
3577 * @brief Get field con_handle from event MESH_PROXY_DISCONNECTED_EVENT
3578 * @param event packet
3579 * @return con_handle
3580 * @note: btstack_type H
3581 */
3582static inline hci_con_handle_t mesh_proxy_disconnected_event_get_con_handle(const uint8_t * event){
3583 return little_endian_read_16(event, 3);
3584}
3585
3586/**
3548 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3549 * @param event packet
3550 * @return status
3551 * @note: btstack_type 1
3552 */
3553static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){
3554 return event[3];
3555}

--- 3960 unchanged lines hidden ---
3587 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE
3588 * @param event packet
3589 * @return status
3590 * @note: btstack_type 1
3591 */
3592static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){
3593 return event[3];
3594}

--- 3960 unchanged lines hidden ---