btstack_defines.h (dfc5d4aed94bed8234f94d1fd37178a70255f1ba) btstack_defines.h (01f33f4af1715157f75de0218bdb20ccf6952236)
1/*
2 * Copyright (C) 2015 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

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

837// data: event(8), len(8), handle(16), result (16) (0 == ok, 1 == fail)
838 /**
839 * @format H2
840 * @param handle
841 * @param result
842 */
843#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 0x77
844
1/*
2 * Copyright (C) 2015 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

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

837// data: event(8), len(8), handle(16), result (16) (0 == ok, 1 == fail)
838 /**
839 * @format H2
840 * @param handle
841 * @param result
842 */
843#define L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 0x77
844
845 /*
846 * @format H22
847 * @param con_handle
848 * @param extended_feature_mask
849 * @param fixed_channels_supported
850 */
851#define L2CAP_EVENT_INFORMATION_RESPONSE 0x78
852
845/**
846 * @format 2
847 * @param local_cid
848 */
849#define L2CAP_EVENT_CAN_SEND_NOW 0x78
850
853/**
854 * @format 2
855 * @param local_cid
856 */
857#define L2CAP_EVENT_CAN_SEND_NOW 0x78
858
859/*
860 * @format 2
861 * @param local_cid
862 */
863#define L2CAP_EVENT_PACKET_SENT 0x7a
864
865/*
866 * @format 2
867 * @param local_cid
868 */
869#define L2CAP_EVENT_ERTM_BUFFER_RELEASED 0x7b
870
851// L2CAP Channel in LE Credit-based Flow-Control Mode (CBM)
852
853/**
854 * @format 1BH2222
855 * @param address_type
856 * @param address
857 * @param handle
858 * @param psm
859 * @param local_cid
860 * @param remote_cid
861 * @param remote_mtu
862 */
871// L2CAP Channel in LE Credit-based Flow-Control Mode (CBM)
872
873/**
874 * @format 1BH2222
875 * @param address_type
876 * @param address
877 * @param handle
878 * @param psm
879 * @param local_cid
880 * @param remote_cid
881 * @param remote_mtu
882 */
863#define L2CAP_EVENT_CBM_INCOMING_CONNECTION 0x79
883#define L2CAP_EVENT_CBM_INCOMING_CONNECTION 0x7c
864
865/**
866 * @format 11BH122222
867 * @param status
868 * @param address_type
869 * @param address
870 * @param handle
871 * @param incoming
872 * @param psm
873 * @param local_cid
874 * @param remote_cid
875 * @param local_mtu
876 * @param remote_mtu
877 */
884
885/**
886 * @format 11BH122222
887 * @param status
888 * @param address_type
889 * @param address
890 * @param handle
891 * @param incoming
892 * @param psm
893 * @param local_cid
894 * @param remote_cid
895 * @param local_mtu
896 * @param remote_mtu
897 */
878#define L2CAP_EVENT_CBM_CHANNEL_OPENED 0x7a
898#define L2CAP_EVENT_CBM_CHANNEL_OPENED 0x7d
879
880/*
899
900/*
881 * @format 2
882 * @param local_cid
883 */
884#define L2CAP_EVENT_CBM_CHANNEL_CLOSED 0x7b
885
886/*
887 * @format 2
888 * @param local_cid
889 */
890#define L2CAP_EVENT_CBM_CAN_SEND_NOW 0x7c
891
892/*
893 * @format 2
894 * @param local_cid
895 */
896#define L2CAP_EVENT_CBM_PACKET_SENT 0x7d
897
898/*
899 * @format 2
900 * @param local_cid
901 */
902#define L2CAP_EVENT_ERTM_BUFFER_RELEASED 0x7e
903
904/*
905 * @format
906 */
901 * @format
902 */
907#define L2CAP_EVENT_TRIGGER_RUN 0x7f
903#define L2CAP_EVENT_TRIGGER_RUN 0x7e
908
909/**
910 * @format 1BH212
911 * @param address_type
912 * @param address
913 * @param handle
914 * @param psm
915 * @param num_channels
916 * @param local_cid first new cid
917 */
904
905/**
906 * @format 1BH212
907 * @param address_type
908 * @param address
909 * @param handle
910 * @param psm
911 * @param num_channels
912 * @param local_cid first new cid
913 */
918#define L2CAP_EVENT_ECBM_INCOMING_CONNECTION 0x8A
914#define L2CAP_EVENT_ECBM_INCOMING_CONNECTION 0x7f
919
920/**
921 * @format 11BH122222
922 * @param status
923 * @param address_type
924 * @param address
925 * @param handle
926 * @param incoming
927 * @param psm
928 * @param local_cid
929 * @param remote_cid
930 * @param local_mtu
931 * @param remote_mtu
932 */
915
916/**
917 * @format 11BH122222
918 * @param status
919 * @param address_type
920 * @param address
921 * @param handle
922 * @param incoming
923 * @param psm
924 * @param local_cid
925 * @param remote_cid
926 * @param local_mtu
927 * @param remote_mtu
928 */
933#define L2CAP_EVENT_ECBM_CHANNEL_OPENED 0x8b
929#define L2CAP_EVENT_ECBM_CHANNEL_OPENED 0x84
934
935/*
930
931/*
936 * @format 2
937 * @param local_cid
938 */
939#define L2CAP_EVENT_ECBM_CHANNEL_CLOSED 0x8c
940
941/*
942 * @format 2
943 * @param local_cid
944 */
945#define L2CAP_EVENT_ECBM_CAN_SEND_NOW 0x8d
946
947/*
948 * @format 2
949 * @param local_cid
950 */
951#define L2CAP_EVENT_ECBM_PACKET_SENT 0x8e
952
953/*
954 * @format 222
955 * @param remote_cid
956 * @param mtu
957 * @param mps
958 */
932 * @format 222
933 * @param remote_cid
934 * @param mtu
935 * @param mps
936 */
959#define L2CAP_EVENT_ECBM_RECONFIGURED 0x8f
937#define L2CAP_EVENT_ECBM_RECONFIGURED 0x85
960
961/*
962 * @format 22
963 * @param local_cid
964 * @param reconfigure_result
965 */
938
939/*
940 * @format 22
941 * @param local_cid
942 * @param reconfigure_result
943 */
966#define L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 0x96
944#define L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE 0x86
967
945
968/*
969 * @format H22
970 * @param con_handle
971 * @param extended_feature_mask
972 * @param fixed_channels_supported
973 */
974#define L2CAP_EVENT_INFORMATION_RESPONSE 0x97
975
946
976
977// RFCOMM EVENTS
978
979/**
980 * @format 1B21221
981 * @param status
982 * @param bd_addr
983 * @param con_handle
984 * @param server_channel

--- 3110 unchanged lines hidden ---
947// RFCOMM EVENTS
948
949/**
950 * @format 1B21221
951 * @param status
952 * @param bd_addr
953 * @param con_handle
954 * @param server_channel

--- 3110 unchanged lines hidden ---