btstack_event.h (86b052c5712ca8879c768d1727765450a5eb2bcf) btstack_event.h (7f8f119190fb5c4dbcc499490b8408ac3b4e4539)
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

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

7214 * @param event packet
7215 * @return command_string
7216 * @note: btstack_type T
7217 */
7218static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){
7219 return (const char *) &event[7];
7220}
7221
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

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

7214 * @param event packet
7215 * @return command_string
7216 * @note: btstack_type T
7217 */
7218static inline const char * hfp_subevent_custom_at_command_get_command_string(const uint8_t * event){
7219 return (const char *) &event[7];
7220}
7221
7222/**
7223 * @brief Get field acl_handle from event HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT
7224 * @param event packet
7225 * @return acl_handle
7226 * @note: btstack_type H
7227 */
7228static inline hci_con_handle_t hfp_subevent_custom_at_message_sent_get_acl_handle(const uint8_t * event){
7229 return little_endian_read_16(event, 3);
7230}
7231/**
7232 * @brief Get field status from event HFP_SUBEVENT_CUSTOM_AT_MESSAGE_SENT
7233 * @param event packet
7234 * @return status
7235 * @note: btstack_type 1
7236 */
7237static inline uint8_t hfp_subevent_custom_at_message_sent_get_status(const uint8_t * event){
7238 return event[5];
7239}
7240
7222#ifdef ENABLE_BLE
7223/**
7224 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
7225 * @param event packet
7226 * @return handle
7227 * @note: btstack_type H
7228 */
7229static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){

--- 8025 unchanged lines hidden ---
7241#ifdef ENABLE_BLE
7242/**
7243 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
7244 * @param event packet
7245 * @return handle
7246 * @note: btstack_type H
7247 */
7248static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){

--- 8025 unchanged lines hidden ---