 |
m2mb API docs
25.21.002
m2mb API sets documentation
|
Go to the documentation of this file.
29 #define M2MB_BLE_MAX_DEVICE_NAME_LENGTH (39+1)
30 #define M2MB_BLE_MAX_MANUFACTURER_NAME_LENGTH M2MB_BLE_MAX_DEVICE_NAME_LENGTH
31 #define M2MB_BLE_FIXPIN_SIZE 6
32 #define M2MB_BLE_ADV_DATA_SIZE 32
33 #define M2MB_BLE_SCAN_RSP_DATA_SIZE 32
34 #define M2MB_BLE_ADDRESS_RESOLUTION_TIMEOUT 60
35 #define M2MB_BLE_MTU_SIZE_MAX 158
36 #define M2MB_BLE_BOND_ENTRIES_MAX 20
37 #define M2MB_BLE_MAX_ATTRIBUTE_LENGTH 600
40 #define M2MB_BLE_MAX_HEX_VALUE ((2 * M2MB_BLE_MTU_SIZE_MAX) + 1)
42 #define M2MB_BLE_MAX_PAIRED_DEVICES 4
44 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INVALID_HANDLE 0x01
45 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_READ_NOT_PERMITTED 0x02
46 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_WRITE_NOT_PERMITTED 0x03
47 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INVALID_PDU 0x04
48 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INSUFFICIENT_AUTHENTICATION 0x05
49 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_REQUEST_NOT_SUPPORTED 0x06
50 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INVALID_OFFSET 0x07
51 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INSUFFICIENT_AUTHORIZATION 0x08
52 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_ATTRIBUTE_NOT_FOUND 0x0A
53 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_ATTRIBUTE_NOT_LONG 0x0B
54 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INSUFFICIENT_ENCRYPTION_KEY_SIZE 0x0C
55 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INVALID_ATTRIBUTE_VALUE_LENGTH 0x0D
56 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INSUFFICIENT_ENCRYPTION 0x0F
57 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_UNSUPPORTED_GROUP_TYPE 0x10
58 #define M2MB_BLE_ATT_PROTOCOL_ERROR_CODE_INSUFFICIENT_RESOURCES 0x11
61 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_BROADCAST 0x01
62 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_READ 0x02
63 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_WRITE_WITHOUT_RESPONSE 0x04
64 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_WRITE 0x08
65 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_NOTIFY 0x10
66 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_INDICATE 0x20
67 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_AUTHENTICATED_SIGNED_WRITES 0x40
68 #define M2MB_BLE_GATT_CHARACTERISTIC_PROPERTIES_EXTENDED_PROPERTIES 0x80
71 #define M2MB_BLE_GATT_CLIENT_CONFIGURATION_CHARACTERISTIC_NOTIFY_ENABLE 0x0001
72 #define M2MB_BLE_GATT_CLIENT_CONFIGURATION_CHARACTERISTIC_INDICATE_ENABLE 0x0002
77 #define M2MB_BLE_GATT_CLIENT_CHARACTERISTIC_CONFIGURATION_BLUETOOTH_UUID_CONSTANT {0x02, 0x29}
83 #define M2MB_BLE_DIS_PNP_ID_VENDOR_SOURCE_BLUETOOTH_SIG 0x01
84 #define M2MB_BLE_DIS_PNP_ID_VENDOR_SOURCE_USB_IMPLEMENTORS_FORUM 0x02
299 M2MB_BLE_KEYBOARD_DISPLAY_E
644 UINT8
data[M2MB_BLE_ADV_DATA_SIZE];
649 typedef struct M2MB_BLE_CONN_PARAM_UPADTE_S
653 } M2MB_BLE_CONN_PARAM_UPADTE_T;
657 typedef struct M2MB_BLE_MTU_UPADTE_S
661 } M2MB_BLE_MTU_UPADTE_T;
704 UINT16 *value_length;
760 INT32 attribute_handle;
Definition: m2mb_ble.h:182
M2MB_BLE_RESPONSE_T m2mb_ble_gatts_characteristic_add(M2MB_BLE_HANDLE ble_handle, UINT8 properties, M2MB_BLE_UUID_T characteristic_uuid)
Adds characteristic information.
UINT8 datalen
Definition: m2mb_ble.h:643
INT8 M2MB_BLE_BOARDSTR_T[16]
BLE board address in string format.
Definition: m2mb_ble.h:326
BLE user event data.
Definition: m2mb_ble.h:780
BLE UUID.
Definition: m2mb_ble.h:160
Definition: m2mb_ble.h:399
M2MB_BLE_RESPONSE_T m2mb_ble_provisioning_set(M2MB_BLE_HANDLE ble_handle, INT32 status)
Sets the provisioning status.
Definition: m2mb_ble.h:621
UINT8 cccd_val
Definition: m2mb_ble.h:705
UINT8 advertise_data[M2MB_BLE_ADV_DATA_SIZE+1]
Definition: m2mb_ble.h:461
Definition: m2mb_ble.h:374
UINT16 scan_interval
Definition: m2mb_ble.h:447
UINT16 connection_interval_max
Definition: m2mb_ble.h:477
M2MB_BLE_ROLE_T ble_role
Definition: m2mb_ble.h:521
Definition: m2mb_ble.h:394
Definition: m2mb_ble.h:408
M2MB_BLE_RESPONSE_T m2mb_ble_bond_delete(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BD_ADDR_T bd_addr)
Deletes bond information.
M2MB_BLE_RESPONSE_T m2mb_ble_read_value_request(M2MB_BLE_HANDLE ble_handle, INT32 connection_id, INT32 char_handle, UINT8 **value, UINT16 *value_len)
Reads value request.
M2MB_BLE_UUID_128_T uuid_128
Definition: m2mb_ble.h:167
Definition: m2mb_ble.h:406
Definition: m2mb_ble.h:348
struct M2MB_BLE_UUID_S M2MB_BLE_UUID_T
BLE UUID.
M2MB_BLE_UUID_TYPE_T uuid_type
Definition: m2mb_ble.h:162
Definition: m2mb_ble.h:565
Definition: m2mb_ble.h:226
Definition: m2mb_ble.h:893
UINT16 handle
Definition: m2mb_ble.h:674
M2MB_BLE_INIT_STATE_T
BLE INIT state.
Definition: m2mb_ble.h:891
Definition: m2mb_ble.h:183
Definition: m2mb_ble.h:392
struct M2MB_BLE_PERIPHERAL_CFG_S M2MB_BLE_PERIPHERAL_CFG_T
BLE Peripheral configuration parameters.
Definition: m2mb_ble.h:372
Definition: m2mb_ble.h:433
Bluetooth Device Address.
Definition: m2mb_ble.h:309
struct M2MB_BLE_BD_NAME_S M2MB_BLE_BD_NAME_T
Bluetooth Device Name.
Definition: m2mb_ble.h:571
struct M2MB_BLE_BD_ADDR_S M2MB_BLE_BD_ADDR_T
Bluetooth Device Address.
Definition: m2mb_ble.h:238
UINT8 properties
Definition: m2mb_ble.h:924
Definition: m2mb_ble.h:389
Definition: m2mb_ble.h:296
Definition: m2mb_ble.h:213
BLE bond list information.
Definition: m2mb_ble.h:865
Definition: m2mb_ble.h:293
UINT8 ble_tio_mode
Definition: m2mb_ble.h:526
Definition: m2mb_ble.h:564
UINT8 accept_flag
Definition: m2mb_ble.h:720
Definition: m2mb_ble.h:259
Definition: m2mb_ble.h:421
Definition: m2mb_ble.h:197
Definition: m2mb_ble.h:432
Definition: m2mb_ble.h:387
M2MB_BLE_RESPONSE_T m2mb_ble_gatts_complete(M2MB_BLE_HANDLE ble_handle, UINT32 *service_id)
Register service to the BLE stack.
Definition: m2mb_ble.h:227
UINT16 pnpid_vendor_id
Definition: m2mb_ble.h:507
Definition: m2mb_ble.h:181
UINT32 connection_id
Definition: m2mb_ble.h:834
UINT16 connection_interval_min
Definition: m2mb_ble.h:478
Definition: m2mb_ble.h:149
Definition: m2mb_ble.h:375
UINT8 ble_bond_size
Definition: m2mb_ble.h:496
Definition: m2mb_ble.h:414
M2MB_BLE_RESPONSE_T m2mb_ble_write_value_request(M2MB_BLE_HANDLE ble_handle, INT32 connection_id, INT32 char_handle, UINT8 *value, UINT16 value_len)
Write value request.
Definition: m2mb_ble.h:397
M2MB_BLE_BD_ADDR_T BD_ADDR
Definition: m2mb_ble.h:638
Definition: m2mb_ble.h:604
BLE 32 bit UUID.
Definition: m2mb_ble.h:106
M2MB_BLE_BD_ADDR_T ble_bd_address
Definition: m2mb_ble.h:522
Definition: m2mb_ble.h:420
BLE service discovery feature.
Definition: m2mb_ble.h:938
M2MB_BLE_RESPONSE_T m2mb_ble_scan_stop(M2MB_BLE_HANDLE ble_handle)
Stops BLE scanning.
Definition: m2mb_ble.h:377
UINT32 central_connect_id
Definition: m2mb_ble.h:773
UINT32 offset
Definition: m2mb_ble.h:707
Definition: m2mb_ble.h:598
Definition: m2mb_ble.h:430
BLE 128 bit UUID.
Definition: m2mb_ble.h:120
Definition: m2mb_ble.h:388
Definition: m2mb_ble.h:615
M2MB_BLE_CLIENT_READ_RESP_CTX_T central_read
Definition: m2mb_ble.h:789
M2MB_BLE_CONN_PARAM_T ble_conn_param
Definition: m2mb_ble.h:539
M2MB_BLE_ADVERTISE_EVENT_TYPE_T
BLE Advertise event.
Definition: m2mb_ble.h:179
Definition: m2mb_ble.h:563
struct M2MB_BLE_CENTRAL_NOTIFY_INDICATE_DATA_S M2MB_BLE_CENTRAL_NOTIFY_INDICATE_DATA_T
BLE notification and indication data.
Definition: m2mb_ble.h:382
#define M2MB_BLE_MAX_DEVICE_NAME_LENGTH
Definition: m2mb_ble.h:29
M2MB_BLE_RESPONSE_T m2mb_ble_ssppin_reply(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BD_ADDR_T bd_addr, M2MB_BLE_ADDRESS_TYPE_T bd_addr_type, INT32 ssppin, UINT8 accept_flag)
passkey response
M2MB_BLE_UUID_TYPE_T
BLE UUID.
Definition: m2mb_ble.h:146
INT8 * value
Definition: m2mb_ble.h:759
M2MB_BLE_ADDRESS_TYPE_T remote_address_type
Definition: m2mb_ble.h:837
Definition: m2mb_ble.h:435
Definition: m2mb_ble.h:620
Definition: m2mb_ble.h:595
Definition: m2mb_ble.h:199
UINT16 elements_count
Definition: m2mb_ble.h:940
BLE client write response.
Definition: m2mb_ble.h:743
Definition: m2mb_ble.h:396
UINT32 pass_key
Definition: m2mb_ble.h:719
Definition: m2mb_ble.h:225
Definition: m2mb_ble.h:609
Definition: m2mb_ble.h:424
UINT8 data[M2MB_BLE_ADV_DATA_SIZE]
Definition: m2mb_ble.h:644
M2MB_BLE_USER_EVENTS_T
BLE EVENTS to the user.
Definition: m2mb_ble.h:591
Definition: m2mb_ble.h:400
Definition: m2mb_ble.h:240
M2MB_BLE_RESPONSE_T m2mb_ble_sspconf_reply(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BD_ADDR_T bd_addr, M2MB_BLE_ADDRESS_TYPE_T bd_addr_type, UINT32 confirmation_flag)
passkey conformation
M2MB_BLE_ROLE_T
BLE Role.
Definition: m2mb_ble.h:236
Definition: m2mb_ble.h:569
struct M2MB_BLE_CGF_S M2MB_BLE_CGF_T
BLE configuration parameters.
Definition: m2mb_ble.h:687
M2MB_BLE_GATT_ELEMENT_T * gatt_elements
Definition: m2mb_ble.h:941
struct M2MB_BLE_UUID_128_S M2MB_BLE_UUID_128_T
BLE 128 bit UUID.
struct M2MB_BLE_UUID_32_S M2MB_BLE_UUID_32_T
BLE 32 bit UUID.
UINT16 advertise_interval_max
Definition: m2mb_ble.h:459
Definition: m2mb_ble.h:597
Definition: m2mb_ble.h:410
UINT16 start_handle
Definition: m2mb_ble.h:927
M2MB_BLE_CENTRAL_SCAN_FILTER_DUPLICATES_T
Scan results duplicate filtering.
Definition: m2mb_ble.h:685
Definition: m2mb_ble.h:618
Definition: m2mb_ble.h:570
M2MB_BLE_UUID_16_T uuid_16
Definition: m2mb_ble.h:165
UINT8 more_data
Definition: m2mb_ble.h:706
Definition: m2mb_ble.h:561
UINT16 slave_latency
Definition: m2mb_ble.h:479
M2MB_BLE_RESPONSE_T m2mb_ble_device_bd_addr_get(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BD_ADDR_T *bd_addr)
Gets the BLE device bd address.
Definition: m2mb_ble.h:401
M2MB_BLE_SCAN_REPORT_DATA_T scan_data
Definition: m2mb_ble.h:783
UINT8 bd_name[M2MB_BLE_MAX_DEVICE_NAME_LENGTH]
Definition: m2mb_ble.h:337
struct M2MB_BLE_DIS_INFO_S M2MB_BLE_DIS_INFO_T
BLE DIS configuration parameters.
BLE scan report data.
Definition: m2mb_ble.h:636
Definition: m2mb_ble.h:370
Definition: m2mb_ble.h:419
BOOLEAN remote_device_is_master
Definition: m2mb_ble.h:835
Definition: m2mb_ble.h:575
M2MB_BLE_RESPONSE_T * result_flag
Definition: m2mb_ble.h:699
M2MB_BLE_RESPONSE_T m2mb_ble_shutdown(M2MB_BLE_HANDLE ble_handle)
Deinitialization of BLE.
UINT8 leprivacy
Definition: m2mb_ble.h:494
UINT8 ** value
Definition: m2mb_ble.h:703
M2MB_BLE_DIS_INFO_T ble_dis_param
Definition: m2mb_ble.h:541
Definition: m2mb_ble.h:407
Definition: m2mb_ble.h:402
Definition: m2mb_ble.h:611
M2MB_BLE_ADDRESS_TYPE_T remote_bd_address_type
Definition: m2mb_ble.h:868
BLE security configuration parameters.
Definition: m2mb_ble.h:489
Definition: m2mb_ble.h:577
Definition: m2mb_ble.h:572
Definition: m2mb_ble.h:403
Definition: m2mb_ble.h:381
Definition: m2mb_ble.h:405
Definition: m2mb_ble.h:384
Definition: m2mb_ble.h:428
M2MB_BLE_GENERAL_PARAM_T ble_gen_param
Definition: m2mb_ble.h:542
Definition: m2mb_ble.h:574
Definition: m2mb_ble.h:290
Definition: m2mb_ble.h:905
Definition: m2mb_ble.h:386
Definition: m2mb_ble.h:371
M2MB_BLE_RESPONSE_T m2mb_ble_scan_start(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BD_ADDR_T bd_addr)
Starts BLE scanning.
struct M2MB_BLE_CENTRAL_CFG_S M2MB_BLE_CENTRAL_CFG_T
BLE Central configuration parameters.
M2MB_BLE_PIN_REQUEST_CTX_T ssp_pin
Definition: m2mb_ble.h:787
UINT8 p_value[M2MB_BLE_MAX_ATTRIBUTE_LENGTH]
Definition: m2mb_ble.h:676
INT8 RSSI
Definition: m2mb_ble.h:639
Definition: m2mb_ble.h:367
Definition: m2mb_ble.h:263
M2MB_BLE_DISCOVERABILITY_MODE_T discover_mode
Definition: m2mb_ble.h:465
UINT8 fix_pin[M2MB_BLE_FIXPIN_SIZE+1]
Definition: m2mb_ble.h:493
BLE configuration parameters.
Definition: m2mb_ble.h:535
Definition: m2mb_ble.h:581
M2MB_BLE_GATT_SERVER_EVENT_DETAILS_T gatt_attrib
Definition: m2mb_ble.h:782
M2MB_BLE_BD_ADDR_T identity_address_bdaddr
Definition: m2mb_ble.h:838
Definition: m2mb_ble.h:599
HANDLE M2MB_BLE_HANDLE
BLE handle.
Definition: m2mb_ble.h:857
M2MB_BLE_IO_CAPABILITY_T
different IO Capabilities of an LE device
Definition: m2mb_ble.h:284
UINT32 peripheral_connect_id
Definition: m2mb_ble.h:772
Definition: m2mb_ble.h:383
BLE general configuration parameters.
Definition: m2mb_ble.h:519
BLE SSP request.
Definition: m2mb_ble.h:716
M2MB_BLE_RESPONSE_T m2mb_ble_provisioning_get(M2MB_BLE_HANDLE ble_handle, INT32 *status)
Gets the provisioning status.
UINT16 pnpid_product_version
Definition: m2mb_ble.h:510
Definition: m2mb_ble.h:579
Definition: m2mb_ble.h:558
M2MB_BLE_RESPONSE_T m2mb_ble_connid_device_info_get(M2MB_BLE_HANDLE ble_handle, UINT8 conn_id, M2MB_BLE_DEVICE_INFO_T *dev_info)
Gets the Device information.
M2MB_BLE_RESPONSE_T m2mb_ble_initialize(M2MB_BLE_HANDLE *ble_handle, m2mb_ble_event_callback ble_callback, void *user_data)
Initialization of BLE.
UINT8 congested_flag
Definition: m2mb_ble.h:842
struct M2MB_BLE_BOND_LIST_INFO_S M2MB_BLE_BOND_LIST_INFO_T
BLE bond list information.
UINT8 notify_ind_flag
Definition: m2mb_ble.h:673
Definition: m2mb_ble.h:613
BLE client read response.
Definition: m2mb_ble.h:755
M2MB_BLE_RESPONSE_T m2mb_ble_write_value_command(M2MB_BLE_HANDLE ble_handle, INT32 connection_id, INT32 char_handle, UINT8 *value, UINT16 value_len)
Write value to the particular service's characteristic ID.
M2MB_BLE_DISCOVERABILITY_MODE_T
BLE discoverability modes.
Definition: m2mb_ble.h:209
BLE notification and indication data.
Definition: m2mb_ble.h:670
Definition: m2mb_ble.h:252
BLE GATT elements.
Definition: m2mb_ble.h:919
Definition: m2mb_ble.h:580
Definition: m2mb_ble.h:908
Definition: m2mb_ble.h:412
M2MB_BLE_IO_CAPABILITY_T iocapability
Definition: m2mb_ble.h:491
BLE Peripheral configuration parameters.
Definition: m2mb_ble.h:457
M2MB_BLE_RESPONSE_T m2mb_ble_bdaddr_device_info_get(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BD_ADDR_T bd_addr, M2MB_BLE_DEVICE_INFO_T *dev_info)
Gets the Device information.
M2MB_BLE_PAIRABILITY_MODE_T
BLE pairability modes.
Definition: m2mb_ble.h:223
Definition: m2mb_ble.h:601
Definition: m2mb_ble.h:148
Definition: m2mb_ble.h:425
M2MB_BLE_CONNECTABILITY_MODE_T
BLE connectability modes.
Definition: m2mb_ble.h:195
UINT32 service_id
Definition: m2mb_ble.h:700
struct M2MB_BLE_DEVICE_INFO_S M2MB_BLE_DEVICE_INFO_T
BLE device information.
INT8 ble_manufacturer_name[M2MB_BLE_MAX_MANUFACTURER_NAME_LENGTH+1]
Definition: m2mb_ble.h:525
Definition: m2mb_ble.h:255
M2MB_BLE_SECURITY_CFG_T ble_security_cfg
Definition: m2mb_ble.h:540
UINT16 scan_window
Definition: m2mb_ble.h:448
Definition: m2mb_ble.h:906
UINT8 scan_response_data[M2MB_BLE_SCAN_RSP_DATA_SIZE+1]
Definition: m2mb_ble.h:462
M2MB_BLE_CENTRAL_NOTIFY_INDICATE_DATA_T notify_data
Definition: m2mb_ble.h:785
M2MB_BLE_PERIPHERAL_CFG_T ble_peripheral_cfg
Definition: m2mb_ble.h:538
Definition: m2mb_ble.h:607
M2MB_BLE_BD_ADDR_T remote_bd_addr
Definition: m2mb_ble.h:731
Definition: m2mb_ble.h:379
Definition: m2mb_ble.h:619
Definition: m2mb_ble.h:907
Definition: m2mb_ble.h:576
struct M2MB_BLE_SECURITY_CFG_S M2MB_BLE_SECURITY_CFG_T
BLE security configuration parameters.
BLE device information.
Definition: m2mb_ble.h:831
Definition: m2mb_ble.h:559
INT32 attribute_handle
Definition: m2mb_ble.h:746
INT8 ble_device_name[M2MB_BLE_MAX_DEVICE_NAME_LENGTH+1]
Definition: m2mb_ble.h:524
struct M2MB_BLE_UUID_16_S M2MB_BLE_UUID_16_T
BLE 16 bit UUID.
BLE 16 bit UUID.
Definition: m2mb_ble.h:94
M2MB_BLE_CONFIG_PARAM_T
BLE configuration parameters.
Definition: m2mb_ble.h:365
Definition: m2mb_ble.h:373
Definition: m2mb_ble.h:427
M2MB_BLE_SSP_REQUEST_CTX_T ssp_conf
Definition: m2mb_ble.h:786
struct M2MB_BLE_GATT_ELEMENT_S M2MB_BLE_GATT_ELEMENT_T
BLE GATT elements.
Definition: m2mb_ble.h:416
Definition: m2mb_ble.h:184
M2MB_BLE_RESPONSE_T m2mb_ble_get_init_state(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_INIT_STATE_T *state)
Getting BLE initialization state.
UINT8 connection_id
Definition: m2mb_ble.h:672
Definition: m2mb_ble.h:393
Definition: m2mb_ble.h:881
M2MB_BLE_CENTRAL_CFG_T ble_central_cfg
Definition: m2mb_ble.h:537
M2MB_BLE_UUID_32_T uuid_32
Definition: m2mb_ble.h:166
Definition: m2mb_ble.h:612
M2MB_BLE_ADDRESS_TYPE_T
BLE address types.
Definition: m2mb_ble.h:249
M2MB_BLE_ADVERTISE_EVENT_TYPE_T bd_adv_type
Definition: m2mb_ble.h:642
Definition: m2mb_ble.h:422
BLE GATT server event details.
Definition: m2mb_ble.h:697
M2MB_BLE_CONNECTABILITY_MODE_T connect_mode
Definition: m2mb_ble.h:464
BLE connection configuration parameters.
Definition: m2mb_ble.h:475
Definition: m2mb_ble.h:287
INT8 device_name[M2MB_BLE_MAX_DEVICE_NAME_LENGTH+1]
Definition: m2mb_ble.h:640
struct M2MB_BLE_GENERAL_PARAM_S M2MB_BLE_GENERAL_PARAM_T
BLE general configuration parameters.
M2MB_BLE_PAIRABILITY_MODE_T pair_mode
Definition: m2mb_ble.h:466
M2MB_BLE_CLIENT_WRITE_RESP_CTX_T central_write
Definition: m2mb_ble.h:788
UINT8 pin_size
Definition: m2mb_ble.h:733
Definition: m2mb_ble.h:398
Definition: m2mb_ble.h:350
M2MB_BLE_ADDRESS_TYPE_T bd_addr_type
Definition: m2mb_ble.h:641
UINT16 ble_device_appearance
Definition: m2mb_ble.h:523
M2MB_BLE_RESPONSE_T m2mb_ble_gatts_characteristic_value_add(M2MB_BLE_HANDLE ble_handle, UINT16 permissions, UINT16 value_len, UINT8 *value, UINT32 *characteristic_id)
Adds characteristic value information.
M2MB_BLE_RESPONSE_T m2mb_ble_connect(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BD_ADDR_T bd_addr, M2MB_BLE_ADDRESS_TYPE_T bd_addr_type, INT32 *connection_id)
Connects to the BLE remote device.
BLE DIS configuration parameters.
Definition: m2mb_ble.h:505
M2MB_BLE_GATT_ATTRIB_TYPE_T
BLE GATT attribute type.
Definition: m2mb_ble.h:903
UINT16 value_size
Definition: m2mb_ble.h:675
Definition: m2mb_ble.h:602
M2MB_BLE_RESPONSE_T m2mb_ble_conf(M2MB_BLE_HANDLE ble_handle, UINT8 num_cmds,...)
BLE configuration API.
UINT8 accept_flag
Definition: m2mb_ble.h:734
Bluetooth Device Name.
Definition: m2mb_ble.h:335
Definition: m2mb_ble.h:688
Definition: m2mb_ble.h:608
M2MB_BLE_RESPONSE_T m2mb_ble_cccd_request(M2MB_BLE_HANDLE ble_handle, INT32 connection_id, INT32 char_handle, M2MB_BLE_CCCD_T cccd_val)
CCCD value request.
BLE Central configuration parameters.
Definition: m2mb_ble.h:444
UINT32 char_cccd_id
Definition: m2mb_ble.h:702
M2MB_BLE_RESPONSE_T m2mb_ble_bond_list_get(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_BOND_LIST_INFO_T **bond_list_info, UINT32 *num_of_entries)
Gets the bond information.
UINT16 advertise_interval_min
Definition: m2mb_ble.h:460
Definition: m2mb_ble.h:573
Definition: m2mb_ble.h:385
M2MB_BLE_UUID_T uuid
Definition: m2mb_ble.h:922
M2MB_BLE_ADV_TYPE_T
BLE ADV type.
Definition: m2mb_ble.h:878
Definition: m2mb_ble.h:150
M2MB_BLE_RESPONSE_T m2mb_ble_send_indication(M2MB_BLE_HANDLE ble_handle, INT32 attribute_handle, INT32 conn_id, INT32 len, INT32 confirm, UINT8 *value)
Sending indication to the service.
Definition: m2mb_ble.h:593
Definition: m2mb_ble.h:567
M2MB_BLE_ROLE_T remote_bd_role
Definition: m2mb_ble.h:869
UINT8 ble_bond_store_support
Definition: m2mb_ble.h:495
BLE PIN request.
Definition: m2mb_ble.h:729
Definition: m2mb_ble.h:605
struct M2MB_BLE_CONN_PARAM_S M2MB_BLE_CONN_PARAM_T
BLE connection configuration parameters.
M2MB_BLE_BD_ADDR_T remote_bd_address
Definition: m2mb_ble.h:867
Definition: m2mb_ble.h:560
Definition: m2mb_ble.h:562
Definition: m2mb_ble.h:376
UINT8 mitm
Definition: m2mb_ble.h:492
Definition: m2mb_ble.h:368
UINT16 pnpid_vendor_id_source
Definition: m2mb_ble.h:508
struct M2MB_BLE_USER_EVENT_CTX_S M2MB_BLE_USER_EVENT_CTX_T
BLE user event.
Definition: m2mb_ble.h:566
M2MB_BLE_RESPONSE_T
BLE status.
Definition: m2mb_ble.h:556
Definition: m2mb_ble.h:413
Definition: m2mb_ble.h:429
Definition: m2mb_ble.h:212
UINT32 mtu
Definition: m2mb_ble.h:774
UINT32 char_id
Definition: m2mb_ble.h:701
Definition: m2mb_ble.h:594
INT32 value_length
Definition: m2mb_ble.h:758
M2MB_BLE_CONN_PARAM_T connection_params
Definition: m2mb_ble.h:784
M2MB_BLE_CCCD_T
BLE CCCD.
Definition: m2mb_ble.h:346
M2MB_BLE_RESPONSE_T m2mb_ble_gatts_serv_send_data(M2MB_BLE_HANDLE ble_handle, UINT32 serv_id, UINT32 char_id, UINT8 *value, UINT16 value_len, M2MB_BLE_CCCD_T cccd)
Send data to the server.
Definition: m2mb_ble.h:185
UINT16 supervision_timeout
Definition: m2mb_ble.h:480
struct M2MB_BLE_SCAN_REPORT_DATA_S M2MB_BLE_SCAN_REPORT_DATA_T
BLE scan report data.
M2MB_BLE_GATT_ATTRIB_TYPE_T type
Definition: m2mb_ble.h:921
M2MB_BLE_RESPONSE_T m2mb_ble_advertise(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_ADV_TYPE_T adv_type)
Starts advertising.
Definition: m2mb_ble.h:423
Definition: m2mb_ble.h:198
Definition: m2mb_ble.h:882
Definition: m2mb_ble.h:600
Definition: m2mb_ble.h:880
Definition: m2mb_ble.h:894
Definition: m2mb_ble.h:610
M2MB_BLE_BD_ADDR_T remote_address
Definition: m2mb_ble.h:836
UINT16 scan_duration
Definition: m2mb_ble.h:446
UINT32 mtu_size
Definition: m2mb_ble.h:840
Definition: m2mb_ble.h:411
Definition: m2mb_ble.h:391
INT32 status
Definition: m2mb_ble.h:757
Definition: m2mb_ble.h:909
Definition: m2mb_ble.h:239
UINT16 pnpid_product_id
Definition: m2mb_ble.h:509
UINT16 end_handle
Definition: m2mb_ble.h:928
UINT16 attrib_handle
Definition: m2mb_ble.h:923
Definition: m2mb_ble.h:603
Definition: m2mb_ble.h:431
struct M2MB_BLE_GATT_SERVER_EVENT_DETAILS_S M2MB_BLE_GATT_SERVER_EVENT_DETAILS_T
BLE GATT server event details.
BOOLEAN used_flag
Definition: m2mb_ble.h:833
struct M2MB_BLE_GATT_SRVD_S M2MB_BLE_GATT_SRVD_T
BLE service discovery feature.
M2MB_BLE_RESPONSE_T m2mb_ble_gatts_service_add(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_UUID_T service_uuid)
Adds ble service.
INT32 status
Definition: m2mb_ble.h:745
Definition: m2mb_ble.h:378
Definition: m2mb_ble.h:415
M2MB_BLE_RESPONSE_T m2mb_ble_disconnect(M2MB_BLE_HANDLE ble_handle, INT32 connection_id)
Disconnects BLE devices.
void(* m2mb_ble_event_callback)(M2MB_BLE_HANDLE ble_handle, M2MB_BLE_USER_EVENTS_T ble_event, UINT16 resp_size, void *resp, void *userdata)
BLE event callback.
Definition: m2mb_ble.h:950
Definition: m2mb_ble.h:409
Definition: m2mb_ble.h:434
M2MB_BLE_RESPONSE_T m2mb_ble_start_discovery(M2MB_BLE_HANDLE ble_handle, INT32 connection_id, M2MB_BLE_UUID_T uuid, M2MB_BLE_GATT_SRVD_T **results)
Starts service discovery.
Definition: m2mb_ble.h:211
Definition: m2mb_ble.h:349
Definition: m2mb_ble.h:617
Definition: m2mb_ble.h:390
M2MB_BLE_BD_ADDR_T remote_bd_addr
Definition: m2mb_ble.h:718
Definition: m2mb_ble.h:418
M2MB_BLE_ADDRESS_TYPE_T identity_address_type
Definition: m2mb_ble.h:839
BLE user event.
Definition: m2mb_ble.h:770
M2MB_BLE_CONN_PARAM_T conn_params
Definition: m2mb_ble.h:841