blatann.nrf.nrf_types.enums module
Generic Enums
- class blatann.nrf.nrf_types.enums.BLEGapAdvType(value)
Bases:
IntEnumAn enumeration.
- connectable_undirected = 0
- connectable_directed = 1
- scanable_undirected = 2
- non_connectable_undirected = 3
- scan_response = 4
- class blatann.nrf.nrf_types.enums.BLEGapAuthKeyType(value)
Bases:
IntEnumAn enumeration.
- NONE = 0
- OOB = 2
- PASSKEY = 1
- class blatann.nrf.nrf_types.enums.BLEGapIoCaps(value)
Bases:
IntEnumAn enumeration.
- DISPLAY_ONLY = 0
- DISPLAY_YESNO = 1
- KEYBOARD_ONLY = 2
- NONE = 3
- KEYBOARD_DISPLAY = 4
- class blatann.nrf.nrf_types.enums.BLEGapPhy(value)
Bases:
IntFlagAn enumeration.
- auto = 0
- one_mbps = 1
- two_mbps = 2
- coded = 4
- class blatann.nrf.nrf_types.enums.BLEGapRoles(value)
Bases:
IntEnumAn enumeration.
- invalid = 0
- periph = 1
- central = 2
- class blatann.nrf.nrf_types.enums.BLEGapSecStatus(value)
Bases:
IntEnumAn enumeration.
- success = 0
- timeout = 1
- pdu_invalid = 2
- passkey_entry_failed = 129
- oob_not_available = 130
- auth_req = 131
- confirm_value = 132
- pairing_not_supp = 133
- enc_key_size = 134
- smp_cmd_unsupported = 135
- unspecified = 136
- repeated_attempts = 137
- invalid_params = 138
- dhkey_failure = 139
- num_comp_failure = 140
- br_edr_in_prog = 141
- x_trans_key_disallowed = 142
- class blatann.nrf.nrf_types.enums.BLEGapTimeoutSrc(value)
Bases:
IntEnumAn enumeration.
- advertising = 0
- scan = 1
- conn = 2
- security_req = 3
- class blatann.nrf.nrf_types.enums.BLEGattExecWriteFlag(value)
Bases:
EnumAn enumeration.
- prepared_cancel = 0
- prepared_write = 1
- unused = 0
- class blatann.nrf.nrf_types.enums.BLEGattHVXType(value)
Bases:
EnumAn enumeration.
- invalid = 0
- notification = 1
- indication = 2
- class blatann.nrf.nrf_types.enums.BLEGattStatusCode(value)
Bases:
EnumAn enumeration.
- success = 0
- unknown = 1
- invalid = 256
- invalid_handle = 257
- read_not_permitted = 258
- write_not_permitted = 259
- invalid_pdu = 260
- insuf_authentication = 261
- request_not_supported = 262
- invalid_offset = 263
- insuf_authorization = 264
- prepare_queue_full = 265
- attribute_not_found = 266
- attribute_not_long = 267
- insuf_enc_key_size = 268
- invalid_att_val_length = 269
- unlikely_error = 270
- insuf_encryption = 271
- unsupported_group_type = 272
- insuf_resources = 273
- rfu_range1_begin = 274
- rfu_range1_end = 383
- app_begin = 384
- app_end = 415
- rfu_range2_begin = 416
- rfu_range2_end = 479
- rfu_range3_begin = 480
- rfu_range3_end = 508
- cps_cccd_config_error = 509
- cps_proc_alr_in_prog = 510
- cps_out_of_range = 511
- class blatann.nrf.nrf_types.enums.BLEGattsWriteOperation(value)
Bases:
EnumAn enumeration.
- invalid = 0
- write_req = 1
- write_cmd = 2
- sign_write_cmd = 3
- prep_write_req = 4
- exec_write_req_cancel = 5
- exec_write_req_now = 6
- class blatann.nrf.nrf_types.enums.BLEGattWriteOperation(value)
Bases:
EnumAn enumeration.
- invalid = 0
- write_req = 1
- write_cmd = 2
- signed_write_cmd = 3
- prepare_write_req = 4
- execute_write_req = 5
- class blatann.nrf.nrf_types.enums.BLEHci(value)
Bases:
EnumAn enumeration.
- success = 0
- unknown_btle_command = 1
- unknown_connection_identifier = 2
- authentication_failure = 5
- pin_or_key_missing = 6
- memory_capacity_exceeded = 7
- connection_timeout = 8
- command_disallowed = 12
- invalid_btle_command_parameters = 18
- remote_user_terminated_connection = 19
- remote_dev_termination_due_to_low_resources = 20
- remote_dev_termination_due_to_power_off = 21
- local_host_terminated_connection = 22
- unsupported_remote_feature = 26
- invalid_lmp_parameters = 30
- unspecified_error = 31
- lmp_response_timeout = 34
- lmp_transaction_collision = 35
- lmp_pdu_not_allowed = 36
- instant_passed = 40
- pairintg_with_unit_key_unsupported = 41
- differen_transaction_collision = 42
- controller_busy = 58
- conn_interval_unacceptable = 59
- parameter_out_of_mandatory_range = 48
- directed_advertiser_timeout = 60
- conn_terminated_due_to_mic_failure = 61
- conn_failed_to_be_established = 62
- class blatann.nrf.nrf_types.enums.NrfError(value)
Bases:
EnumAn enumeration.
- success = 0
- svc_handler_missing = 1
- softdevice_not_enabled = 2
- internal = 3
- no_mem = 4
- not_found = 5
- not_supported = 6
- invalid_param = 7
- invalid_state = 8
- invalid_length = 9
- invalid_flags = 10
- invalid_data = 11
- data_size = 12
- timeout = 13
- null = 14
- forbidden = 15
- invalid_addr = 16
- busy = 17
- conn_count = 18
- resources = 19
- ble_not_enabled = 12289
- ble_invalid_conn_handle = 12290
- ble_invalid_attr_handle = 12291
- ble_invalid_adv_handle = 12292
- ble_invalid_role = 12293
- ble_blocked_by_other_links = 12294
- ble_gap_uuid_list_mismatch = 12800
- ble_gap_discoverable_with_whitelist = 12801
- ble_gap_invalid_ble_addr = 12802
- ble_gap_whitelist_in_use = 12803
- ble_gap_device_identities_in_use = 12804
- ble_gap_device_identities_duplicate = 12805
- ble_gattc_proc_not_permitted = 13056
- ble_gatts_invalid_attr_type = 13312
- ble_gatts_sys_attr_missing = 13313
- rpc_encode = 32769
- rpc_decode = 32770
- rpc_send = 32771
- rpc_invalid_argument = 32772
- rpc_no_response = 32773
- rpc_invalid_state = 32774
- rpc_serialization_transport = 32788
- rpc_serialization_transport_invalid_state = 32789
- rpc_serialization_transport_no_response = 32790
- rpc_serialization_transport_already_open = 32791
- rpc_serialization_transport_already_closed = 32792
- rpc_h5_transport = 32808
- rpc_h5_transport_state = 32809
- rpc_h5_transport_no_response = 32810
- rpc_h5_transport_slip_payload_size = 32811
- rpc_h5_transport_slip_calculated_payload_size = 32812
- rpc_h5_transport_slip_decoding = 32813
- rpc_h5_transport_header_checksum = 32814
- rpc_h5_transport_packet_checksum = 32815
- rpc_h5_transport_already_open = 32816
- rpc_h5_transport_already_closed = 32817
- rpc_h5_transport_internal_error = 32818
- rpc_serial_port = 32828
- rpc_serial_port_state = 32829
- rpc_serial_port_already_open = 32830
- rpc_serial_port_already_closed = 32831
- rpc_serial_port_internal_error = 32832