Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
Common service API (PRU/PTU)

Data Structures

struct  ble_wpts_service_data_t
 Struct holding contents of "Service data AD type". More...
 

Macros

#define BLE_WPTS_SEC_MODE_1_LEVEL_1   BLE_GAP_CONN_SEC_MODE_SET_OPEN
 
#define BLE_WPTS_SEC_MODE_1_LEVEL_2   BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM
 
#define BLE_WPTS_ADV_UUID_POS   0
 Advertising data. More...
 
#define BLE_WPTS_ADV_UUID_LEN   2
 
#define BLE_WPTS_ADV_SERVICE_HANDLE_POS   0
 Advertising Service Data. More...
 
#define BLE_WPTS_ADV_SERVICE_HANDLE_LEN   2
 
#define BLE_WPTS_ADV_PRU_RSSI_PARAMS_POS   (BLE_WPTS_ADV_SERVICE_HANDLE_POS + BLE_WPTS_ADV_SERVICE_HANDLE_LEN)
 
#define BLE_WPTS_ADV_PRU_RSSI_PARAMS_LEN   1
 
#define BLE_WPTS_ADV_ANTENNA_GAIN_OFFSET   5
 
#define BLE_WPTS_ADV_ANTENNA_GAIN_UNKNOWN_VAL   0xFF
 
#define BLE_WPTS_ADV_PRU_TX_POWER_LEVEL_OFFSET   20
 
#define BLE_WPTS_ADV_POWER_UNKNOWN_VAL   0xFF
 
#define BLE_WPTS_ADV_PRU_RSSI_PRU_GAIN_BITPOS   0
 
#define BLE_WPTS_ADV_PRU_RSSI_PRU_GAIN_BITMSK   0x07
 
#define BLE_WPTS_ADV_PRU_RSSI_PRU_PWR_BITPOS   3
 
#define BLE_WPTS_ADV_PRU_RSSI_PRU_PWR_BITMSK   (0x1F << BLE_WPTS_ADV_PRU_RSSI_PRU_PWR_BITPOS)
 
#define BLE_WPTS_ADV_FLAGS_POS   (BLE_WPTS_ADV_PRU_RSSI_PARAMS_POS + BLE_WPTS_ADV_PRU_RSSI_PARAMS_LEN)
 
#define BLE_WPTS_ADV_FLAGS_LEN   1
 
#define BLE_WPTS_ADV_SERVICE_DATA_LENGTH   (BLE_WPTS_ADV_UUID_LEN + BLE_WPTS_ADV_SERVICE_HANDLE_LEN + BLE_WPTS_ADV_PRU_RSSI_PARAMS_LEN + BLE_WPTS_ADV_FLAGS_LEN)
 
#define BLE_WPTS_ADV_FLAG_IMPEDANCE_SHIFT_BITPOS   5
 
#define BLE_WPTS_ADV_FLAG_IMPEDANCE_SHIFT_BITMSK   (0x07 << BLE_WPTS_ADV_FLAG_IMPEDANCE_SHIFT_BITPOS)
 
#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_BITPOS   4
 
#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_BITMSK   (1 << BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_BITPOS)
 
#define BLE_WPTS_ADV_FLAG_OVP_STATUS_BITPOS   3
 
#define BLE_WPTS_ADV_FLAG_OVP_STATUS_BITMSK   (1 << BLE_WPTS_ADV_FLAG_OVP_STATUS_BITPOS)
 
#define BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITPOS   2
 
#define BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITMSK   (1 << BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITPOS)
 
#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_REBOOTED_VAL   0
 
#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_NOT_REBOOTED_VAL   1
 
#define BLE_WPTS_ADV_SERVICE_DATA_LEN   (BLE_WPTS_ADV_FLAGS_POS + BLE_WPTS_ADV_FLAGS_LEN)
 
#define BLE_WPTS_PRU_CONTROL_ENABLES_POS   0
 PRU Control characteristic fields byte positions. More...
 
#define BLE_WPTS_PRU_CONTROL_PERMISSION_POS   1
 
#define BLE_WPTS_PRU_CONTROL_TIME_SET_POS   2
 
#define BLE_WPTS_ENABLE_PRU_OUTPUT_BITPOS   7
 PRU Control characteristic Enables bit field definitions. More...
 
#define BLE_WPTS_ENABLE_PRU_OUTPUT_BITMSK   (0x01 << BLE_WPTS_ENABLE_PRU_OUTPUT_BITPOS)
 
#define BLE_WPTS_ENABLE_PRU_OUTPUT_ENABLE_VAL   0x01
 
#define BLE_WPTS_ENABLE_PRU_OUTPUT_DISABLE_VAL   0x00
 
#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_BITPOS   6
 
#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_BITMSK   (0x01 << BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_BITPOS)
 
#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_ENABLE_VAL   0x01
 
#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_DISABLE_VAL   0x00
 
#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_BITPOS   4
 
#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_BITMSK   (0x03 << BLE_WPTS_ENABLE_PRU_ADJ_POWER_BITPOS)
 
#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_MAX_VAL   0x00
 
#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_66_PCT_VAL   0x01
 
#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_33_PCT_VAL   0x02
 
#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_2_5_W_VAL   0x03
 
#define BLE_WPTS_PERMISSION_PERMITTED   0x00
 PRU Control characteristic Permission field values. More...
 
#define BLE_WPTS_PERMISSION_PERMITTED_WAITING   0x01
 
#define BLE_WPTS_PERMISSION_DENIED_CC   0x80
 
#define BLE_WPTS_PERMISSION_DENIED_POWER   0x81
 
#define BLE_WPTS_PERMISSION_DENIED_DEVICES   0x82
 
#define BLE_WPTS_PERMISSION_DENIED_CLASS   0x83
 
#define BLE_WPTS_PERMISSION_DENIED_HIGH_TEMP   0x84
 
#define BLE_WPTS_TIME_SET_DENIED   0x00
 PRU Control characteristic Time set values. More...
 
#define BLE_WPTS_TIME_SET_10MS   0x01
 
#define BLE_WPTS_TIME_SET_20MS   0x02
 
#define BLE_WPTS_TIME_SET_30MS   0x03
 
#define BLE_WPTS_TIME_SET_40MS   0x04
 
#define BLE_WPTS_TIME_SET_50MS   0x05
 
#define BLE_WPTS_TIME_SET_60MS   0x06
 
#define BLE_WPTS_TIME_SET_70MS   0x07
 
#define BLE_WPTS_TIME_SET_80MS   0x08
 
#define BLE_WPTS_PTU_STATIC_OPTIONAL_FIELDS_POS   0
 PTU Static Parameter characteristic byte positions. More...
 
#define BLE_WPTS_PTU_STATIC_PTU_POWER_POS   1
 
#define BLE_WPTS_PTU_STATIC_PTU_MAX_SRC_IMPED_POS   2
 
#define BLE_WPTS_PTU_STATIC_PTU_MAX_LOAD_RES_POS   3
 
#define BLE_WPTS_PTU_STATIC_PTU_CLASS_POS   6
 
#define BLE_WPTS_PTU_STATIC_HW_REV_POS   7
 
#define BLE_WPTS_PTU_STATIC_FW_REV_POS   8
 
#define BLE_WPTS_PTU_STATIC_PROTOCOL_REV_POS   9
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_SUPPORTED_POS   10
 
#define BLE_WPTS_OPTION_INVALID_VAL   0
 Common bitifeld valus. More...
 
#define BLE_WPTS_OPTION_VALID_VAL   1
 
#define BLE_WPTS_PTU_STATIC_OPTION_MAX_IMPEDANCE_BITPOS   0x07
 PTU Static characteristic Option bitfield definitions. More...
 
#define BLE_WPTS_PTU_STATIC_OPTION_MAX_IMPEDANCE_BITMSK   (0x01 << BLE_WPTS_PTU_STATIC_OPTION_MAX_IMPEDANCE_BITPOS)
 
#define BLE_WPTS_PTU_STATIC_OPTION_MAX_RESISTANCE_BITPOS   0x06
 
#define BLE_WPTS_PTU_STATIC_OPTION_MAX_RESISTANCE_BITMSK   (0x01 << BLE_WPTS_PTU_STATIC_OPTION_MAX_RESISTANCE_BITPOS)
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_BITPOS   3
 PTU Static characteristic PTU Max Source Impedance bitfield. More...
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_BITMSK   (0x1F << BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_BITPOS)
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_50_VAL   0
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_60_VAL   1
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_70_VAL   2
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_80_VAL   3
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_90_VAL   4
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_100_VAL   5
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_110_VAL   6
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_120_VAL   7
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_130_VAL   8
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_140_VAL   9
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_150_VAL   10
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_175_VAL   11
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_200_VAL   12
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_225_VAL   13
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_250_VAL   14
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_275_VAL   15
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_300_VAL   16
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_350_VAL   17
 
#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_375_VAL   18
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_BITPOS   3
 PTU Static characteristic PTU Max Load Resistance bitfield. More...
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_BITMSK   (0x1F << BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_BITPOS)
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_5_VAL   0
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_10_VAL   1
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_15_VAL   2
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_20_VAL   3
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_25_VAL   4
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_30_VAL   5
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_35_VAL   6
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_40_VAL   7
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_45_VAL   8
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_50_VAL   9
 
#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_55_VAL   10
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_BITPOS   0
 PTU Static characteristic PTU MAx Number of Devices Supported field. More...
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_BITMSK   (0x0F << BLE_WPTS_PTU_STATIC_NUM_DEVICES_BITPOS)
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_1_VAL   0
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_2_VAL   1
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_3_VAL   2
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_4_VAL   3
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_5_VAL   4
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_6_VAL   5
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_7_VAL   6
 
#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_8_VAL   7
 
#define BLE_WPTS_PTU_CLASS_1   0
 PTU Static characteristic PTU Class field. More...
 
#define BLE_WPTS_PTU_CLASS_2   1
 
#define BLE_WPTS_PTU_CLASS_3   2
 
#define BLE_WPTS_PTU_CLASS_4   3
 
#define BLE_WPTS_PTU_CLASS_5   4
 
#define BLE_WPTS_PTU_CLASS_6   5
 
#define BLE_WPTS_PRU_STATIC_OPTIONAL_FIELDS_POS   0
 PRU Static Parameter characteristic byte positions. More...
 
#define BLE_WPTS_PRU_STATIC_PROTOCOL_REV_POS   1
 
#define BLE_WPTS_PRU_STATIC_PRU_CATEGORY_POS   3
 
#define BLE_WPTS_PRU_STATIC_PRU_INFORMATION_POS   4
 
#define BLE_WPTS_PRU_STATIC_HW_REV_POS   5
 
#define BLE_WPTS_PRU_STATIC_FW_REV_POS   6
 
#define BLE_WPTS_PRU_STATIC_PRECT_MAX_POS   7
 
#define BLE_WPTS_PRU_STATIC_VRECT_MIN_STATIC_POS   8
 
#define BLE_WPTS_PRU_STATIC_VRECT_HIGH_STATIC_POS   10
 
#define BLE_WPTS_PRU_STATIC_VRECT_SET_POS   12
 
#define BLE_WPTS_PRU_STATIC_DELTA_R1_POS   14
 
#define BLE_WPTS_PRU_STATIC_OPTION_DELTA_R1_BITPOS   0x07
 PRU Static characteristic Option field. More...
 
#define BLE_WPTS_PRU_STATIC_OPTION_DELTA_R1_BITMSK   (0x01 << BLE_WPTS_PRU_STATIC_OPTION_DELTA_R1_BITPOS)
 
#define BLE_WPTS_PRU_CATEGORY_NO_IMP_SHIFT   0
 PRU Static characteristic PRU Category field. More...
 
#define BLE_WPTS_PRU_CATEGORY_1   1
 
#define BLE_WPTS_PRU_CATEGORY_2   2
 
#define BLE_WPTS_PRU_CATEGORY_3   3
 
#define BLE_WPTS_PRU_CATEGORY_4   4
 
#define BLE_WPTS_PRU_CATEGORY_5   5
 
#define BLE_WPTS_PRU_CATEGORY_6   6
 
#define BLE_WPTS_PRU_CATEGORY_7   7
 
#define BLE_WPTS_PRU_INFO_NFC_BITPOS   0x07
 PRU Static characteristic PRU Information field. More...
 
#define BLE_WPTS_PRU_INFO_NFC_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_NFC_BITPOS)
 
#define BLE_WPTS_PRU_INFO_NFC_SUPPORTED_VAL   1
 
#define BLE_WPTS_PRU_INFO_NFC_NOT_SUPPORTED_VAL   0
 
#define BLE_WPTS_PRU_INFO_BLE_BITPOS   0x06
 
#define BLE_WPTS_PRU_INFO_BLE_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_BLE_BITPOS)
 
#define BLE_WPTS_PRU_INFO_BLE_SUPPORTED_VAL   0x01
 
#define BLE_WPTS_PRU_INFO_BLE_NOT_SUPPORTED_VAL   0x00
 
#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_BITPOS   0x05
 
#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_BITPOS)
 
#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_VRECT_MIN_ERROR_VAL   0x00
 
#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_MAX_SYS_EFC_VAL   0x01
 
#define BLE_WPTS_PRU_INFO_ADJUST_POWER_BITPOS   0x04
 
#define BLE_WPTS_PRU_INFO_ADJUST_POWER_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_ADJUST_POWER_BITPOS)
 
#define BLE_WPTS_PRU_INFO_ADJUST_POWER_SUPPORTED_VAL   0x01
 
#define BLE_WPTS_PRU_INFO_ADJUST_POWER_NOT_SUPPORTED_VAL   0x00
 
#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_BITPOS   0x03
 
#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_BITPOS)
 
#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_SUPPORTED_VAL   0x01
 
#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_NOT_SUPPORTED_VAL   0x00
 
#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_BITPOS   0x02
 
#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_PTU_TEST_MODE_BITPOS)
 
#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_ENABLED_VAL   0x01
 
#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_DISABLED_VAL   0x00
 
#define BLE_WPTS_PRU_DYNAMIC_ALERT_CHARGE_PORT_BITPOS   0x01
 PRU dynamic characteristic Alert bitfield. Remaining bitifields is the same as PRU Alert characteristic bitfields. More...
 
#define BLE_WPTS_PRU_DYNAMIC_ALERT_CHARGE_PORT_BITMSK   (0x01 << BLE_WPTS_PRU_DYNAMIC_ALERT_CHARGE_PORT_BITPOS)
 
#define BLE_WPTS_PRU_DYNAMIC_ALERT_ADJ_POWER_RESP_BITPOS   0x00
 
#define BLE_WPTS_PRU_DYNAMIC_ALERT_ADJ_POWER_RESP_BITMSK   (0x01 << BLE_WPTS_PRU_DYNAMIC_ALERT_ADJ_POWER_RESP_BITPOS)
 
#define BLE_WPTS_PRU_DYNAMIC_OPTIONAL_FIELDS_POS   0
 PRU dynamic characteristic byte positions. More...
 
#define BLE_WPTS_PRU_DYNAMIC_VRECT_POS   1
 
#define BLE_WPTS_PRU_DYNAMIC_IRECT_POS   3
 
#define BLE_WPTS_PRU_DYNAMIC_VOUT_POS   5
 
#define BLE_WPTS_PRU_DYNAMIC_IOUT_POS   7
 
#define BLE_WPTS_PRU_DYNAMIC_TEMPERATURE_POS   9
 
#define BLE_WPTS_PRU_DYNAMIC_VRECT_MIN_DYN_POS   10
 
#define BLE_WPTS_PRU_DYNAMIC_VRECT_SET_DYN_POS   12
 
#define BLE_WPTS_PRU_DYNAMIC_VRECT_HIGH_DYN_POS   14
 
#define BLE_WPTS_PRU_DYNAMIC_PRU_ALERT_POS   16
 
#define BLE_WPTS_PRU_DYNAMIC_PTU_TESTER_COMMAND_POS   17
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VOUT_BITPOS   7
 PRU Dynamic Parameter characteristic Option field. More...
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_IOUT_BITPOS   6
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_TEMPERATURE_BITPOS   5
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_MIN_DYN_BITPOS   4
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_SET_DYN_BITPOS   3
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_HIGH_DYN_BITPOS   2
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VOUT_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VOUT_BITPOS)
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_IOUT_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_IOUT_BITPOS)
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_TEMPERATURE_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_TEMPERATURE_BITPOS)
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_MIN_DYN_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_MIN_DYN_BITPOS)
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_SET_DYN_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_SET_DYN_BITPOS)
 
#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_HIGH_DYN_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_HIGH_DYN_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_POS   0
 PRU alert characteristic byte positions. More...
 
#define BLE_WPTS_PRU_ADDRESS_POS   1
 
#define BLE_WPTS_PRU_ALERT_OVER_VOLTAGE_BITPOS   0x07
 PRU Alert characteristic value bitfield. More...
 
#define BLE_WPTS_PRU_ALERT_OVER_VOLTAGE_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_OVER_VOLTAGE_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_OVER_CURRENT_BITPOS   0x06
 
#define BLE_WPTS_PRU_ALERT_OVER_CURRENT_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_OVER_CURRENT_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_OVER_TEMPERATURE_BITPOS   0x05
 
#define BLE_WPTS_PRU_ALERT_OVER_TEMPERATURE_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_OVER_TEMPERATURE_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_SELF_PROTECTION_BITPOS   0x04
 
#define BLE_WPTS_PRU_ALERT_SELF_PROTECTION_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_SELF_PROTECTION_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_CHARGE_COMPLETE_BITPOS   0x03
 
#define BLE_WPTS_PRU_ALERT_CHARGE_COMPLETE_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_CHARGE_COMPLETE_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_WIRED_CHARGER_DETECT_BITPOS   0x02
 
#define BLE_WPTS_PRU_ALERT_WIRED_CHARGER_DETECT_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_WIRED_CHARGER_DETECT_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_MODE_TRANSITION_BITPOS   0x00
 
#define BLE_WPTS_PRU_ALERT_MODE_TRANSITION_BITMSK   (0x03 << BLE_WPTS_PRU_ALERT_MODE_TRANSITION_BITPOS)
 
#define BLE_WPTS_PRU_ALERT_NO_SELF_PROTECTION_VAL   0x00
 
#define BLE_WPTS_PRU_ALERT_MODE_NO_MODE_TRANSITION_VAL   0x00
 PRU Alert Mode transition. More...
 
#define BLE_WPTS_PRU_ALERT_MODE_2S_MODE_TRANSITION_VAL   0x01
 
#define BLE_WPTS_PRU_ALERT_MODE_3S_MODE_TRANSITION_VAL   0x02
 
#define BLE_WPTS_PRU_ALERT_MODE_6S_MODE_TRANSITION_VAL   0x03
 
#define BLE_WPTS_UUID16   0xFFFE
 WPT Service UUIDs. More...
 
#define BLE_WPTS_UUID16_LEN   2
 
#define BLE_WPTS_UUID128_CHAR_BASE   {0x67, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0x96, 0x9E, 0xE2, 0x11, 0x46, 0xA1, 0x70, 0xE6, 0x55, 0x64}
 
#define BLE_WPTS_UUID128_LEN   16
 
#define BLE_WPTS_UUID_PRU_CONTROL_CHAR_OFFSET   0
 
#define BLE_WPTS_UUID_PTU_STATIC_PARAMETER_CHAR_OFFSET   1
 
#define BLE_WPTS_UUID_PRU_ALERT_CHAR_OFFSET   2
 
#define BLE_WPTS_UUID_PRU_STATIC_PARAMETER_CHAR_OFFSET   3
 
#define BLE_WPTS_UUID_PRU_DYNAMIC_PARAMETER_CHAR_OFFSET   4
 
#define BLE_WPTS_MODIFIED_BYTE   0
 
#define BLE_WPTS_HANDLE_OFFSET_PRU_CONTROL   2
 WPT Service Characteristic value handles offset relative to primary service handle. More...
 
#define BLE_WPTS_HANDLE_OFFSET_PTU_STATIC   4
 
#define BLE_WPTS_HANDLE_OFFSET_PRU_ALERT   6
 
#define BLE_WPTS_HANDLE_OFFSET_PRU_ALERT_CCCD   7
 
#define BLE_WPTS_HANDLE_OFFSET_PRU_STATIC   9
 
#define BLE_WPTS_HANDLE_OFFSET_PRU_DYNAMIC   11
 
#define BLE_WPTS_HANDLE_OFFSET_MIN   2
 
#define BLE_WPTS_HANDLE_OFFSET_MAX   11
 
#define BLE_WPTS_PRU_CONTROL_LEN   5
 Characteristic value lengths. More...
 
#define BLE_WPTS_PTU_STATIC_LEN   17
 
#define BLE_WPTS_PRU_ALERT_MIN_LEN   1
 
#define BLE_WPTS_PRU_ALERT_MAX_LEN   7
 
#define BLE_WPTS_PRU_STATIC_LEN   20
 
#define BLE_WPTS_PRU_DYNAMIC_LEN   20
 
#define BLE_WPTS_PTU_POWER_0_1W   0
 PTU Static characteristic PTU Power field. More...
 
#define BLE_WPTS_PTU_POWER_0_2W   1
 
#define BLE_WPTS_PTU_POWER_0_3W   2
 
#define BLE_WPTS_PTU_POWER_0_4W   3
 
#define BLE_WPTS_PTU_POWER_0_5W   4
 
#define BLE_WPTS_PTU_POWER_0_6W   5
 
#define BLE_WPTS_PTU_POWER_0_7W   6
 
#define BLE_WPTS_PTU_POWER_0_8W   7
 
#define BLE_WPTS_PTU_POWER_0_9W   8
 
#define BLE_WPTS_PTU_POWER_1_0W   10
 
#define BLE_WPTS_PTU_POWER_1_1W   11
 
#define BLE_WPTS_PTU_POWER_1_2W   12
 
#define BLE_WPTS_PTU_POWER_1_3W   13
 
#define BLE_WPTS_PTU_POWER_1_4W   14
 
#define BLE_WPTS_PTU_POWER_1_5W   15
 
#define BLE_WPTS_PTU_POWER_1_6W   16
 
#define BLE_WPTS_PTU_POWER_1_7W   17
 
#define BLE_WPTS_PTU_POWER_1_8W   18
 
#define BLE_WPTS_PTU_POWER_1_9W   19
 
#define BLE_WPTS_PTU_POWER_2_0W   20
 
#define BLE_WPTS_PTU_POWER_2_2W   21
 
#define BLE_WPTS_PTU_POWER_2_4W   22
 
#define BLE_WPTS_PTU_POWER_2_6W   23
 
#define BLE_WPTS_PTU_POWER_2_8W   24
 
#define BLE_WPTS_PTU_POWER_3_0W   25
 
#define BLE_WPTS_PTU_POWER_3_2W   26
 
#define BLE_WPTS_PTU_POWER_3_4W   27
 
#define BLE_WPTS_PTU_POWER_3_6W   28
 
#define BLE_WPTS_PTU_POWER_3_8W   29
 
#define BLE_WPTS_PTU_POWER_4_0W   30
 
#define BLE_WPTS_PTU_POWER_4_2W   31
 
#define BLE_WPTS_PTU_POWER_4_4W   32
 
#define BLE_WPTS_PTU_POWER_4_6W   33
 
#define BLE_WPTS_PTU_POWER_4_8W   34
 
#define BLE_WPTS_PTU_POWER_5_0W   35
 
#define BLE_WPTS_PTU_POWER_5_2W   36
 
#define BLE_WPTS_PTU_POWER_5_4W   37
 
#define BLE_WPTS_PTU_POWER_5_6W   38
 
#define BLE_WPTS_PTU_POWER_5_8W   39
 
#define BLE_WPTS_PTU_POWER_6_0W   40
 
#define BLE_WPTS_PTU_POWER_6_3W   41
 
#define BLE_WPTS_PTU_POWER_6_6W   42
 
#define BLE_WPTS_PTU_POWER_6_9W   43
 
#define BLE_WPTS_PTU_POWER_7_2W   44
 
#define BLE_WPTS_PTU_POWER_7_5W   45
 
#define BLE_WPTS_PTU_POWER_7_8W   46
 
#define BLE_WPTS_PTU_POWER_8_1W   47
 
#define BLE_WPTS_PTU_POWER_8_4W   48
 
#define BLE_WPTS_PTU_POWER_8_7W   49
 
#define BLE_WPTS_PTU_POWER_9_0W   50
 
#define BLE_WPTS_PTU_POWER_9_3W   51
 
#define BLE_WPTS_PTU_POWER_9_6W   52
 
#define BLE_WPTS_PTU_POWER_9_9W   53
 
#define BLE_WPTS_PTU_POWER_10_2W   54
 
#define BLE_WPTS_PTU_POWER_10_5W   55
 
#define BLE_WPTS_PTU_POWER_10_8W   56
 
#define BLE_WPTS_PTU_POWER_11_1W   57
 
#define BLE_WPTS_PTU_POWER_11_4W   58
 
#define BLE_WPTS_PTU_POWER_11_7W   59
 
#define BLE_WPTS_PTU_POWER_12_0W   60
 
#define BLE_WPTS_PTU_POWER_12_4W   61
 
#define BLE_WPTS_PTU_POWER_12_8W   62
 
#define BLE_WPTS_PTU_POWER_13_2W   63
 
#define BLE_WPTS_PTU_POWER_13_6W   64
 
#define BLE_WPTS_PTU_POWER_13_0W   65
 
#define BLE_WPTS_PTU_POWER_14_4W   66
 
#define BLE_WPTS_PTU_POWER_14_8W   67
 
#define BLE_WPTS_PTU_POWER_15_2W   68
 
#define BLE_WPTS_PTU_POWER_15_6W   69
 
#define BLE_WPTS_PTU_POWER_16_0W   70
 
#define BLE_WPTS_PTU_POWER_16_4W   71
 
#define BLE_WPTS_PTU_POWER_16_8W   72
 
#define BLE_WPTS_PTU_POWER_17_2W   73
 
#define BLE_WPTS_PTU_POWER_17_6W   74
 
#define BLE_WPTS_PTU_POWER_18_0W   75
 
#define BLE_WPTS_PTU_POWER_18_4W   76
 
#define BLE_WPTS_PTU_POWER_18_8W   77
 
#define BLE_WPTS_PTU_POWER_19_2W   78
 
#define BLE_WPTS_PTU_POWER_19_6W   79
 
#define BLE_WPTS_PTU_POWER_20_0W   80
 
#define BLE_WPTS_PTU_POWER_20_5W   81
 
#define BLE_WPTS_PTU_POWER_21_0W   82
 
#define BLE_WPTS_PTU_POWER_21_5W   83
 
#define BLE_WPTS_PTU_POWER_22_0W   84
 
#define BLE_WPTS_PTU_POWER_22_5W   85
 
#define BLE_WPTS_PTU_POWER_23_0W   86
 
#define BLE_WPTS_PTU_POWER_23_5W   87
 
#define BLE_WPTS_PTU_POWER_24_0W   88
 
#define BLE_WPTS_PTU_POWER_24_5W   89
 
#define BLE_WPTS_PTU_POWER_25_0W   90
 
#define BLE_WPTS_PTU_POWER_25_5W   91
 
#define BLE_WPTS_PTU_POWER_26_0W   92
 
#define BLE_WPTS_PTU_POWER_26_5W   93
 
#define BLE_WPTS_PTU_POWER_27_0W   94
 
#define BLE_WPTS_PTU_POWER_27_5W   95
 
#define BLE_WPTS_PTU_POWER_28_0W   96
 
#define BLE_WPTS_PTU_POWER_28_5W   97
 
#define BLE_WPTS_PTU_POWER_29_0W   98
 
#define BLE_WPTS_PTU_POWER_29_5W   99
 
#define BLE_WPTS_PTU_POWER_30_0W   100
 
#define BLE_WPTS_PTU_POWER_30_6W   101
 
#define BLE_WPTS_PTU_POWER_31_2W   102
 
#define BLE_WPTS_PTU_POWER_31_8W   103
 
#define BLE_WPTS_PTU_POWER_32_4W   104
 
#define BLE_WPTS_PTU_POWER_33_0W   105
 
#define BLE_WPTS_PTU_POWER_33_6W   106
 
#define BLE_WPTS_PTU_POWER_34_2W   107
 
#define BLE_WPTS_PTU_POWER_34_8W   108
 
#define BLE_WPTS_PTU_POWER_35_4W   109
 
#define BLE_WPTS_PTU_POWER_36_0W   110
 
#define BLE_WPTS_PTU_POWER_36_6W   111
 
#define BLE_WPTS_PTU_POWER_37_2W   112
 
#define BLE_WPTS_PTU_POWER_37_8W   113
 
#define BLE_WPTS_PTU_POWER_38_4W   114
 
#define BLE_WPTS_PTU_POWER_39_0W   115
 
#define BLE_WPTS_PTU_POWER_39_6W   116
 
#define BLE_WPTS_PTU_POWER_40_2W   117
 
#define BLE_WPTS_PTU_POWER_40_8W   118
 
#define BLE_WPTS_PTU_POWER_41_4W   119
 
#define BLE_WPTS_PTU_POWER_42_0W   120
 
#define BLE_WPTS_PTU_POWER_43_0W   121
 
#define BLE_WPTS_PTU_POWER_44_0W   122
 
#define BLE_WPTS_PTU_POWER_45_0W   123
 
#define BLE_WPTS_PTU_POWER_46_0W   124
 
#define BLE_WPTS_PTU_POWER_47_0W   125
 
#define BLE_WPTS_PTU_POWER_48_0W   126
 
#define BLE_WPTS_PTU_POWER_49_0W   127
 
#define BLE_WPTS_BITFIELD_WRITE(bitfield, msk, pos, val)
 Write bitfield. More...
 
#define BLE_WPTS_BITFIELD_READ(bitfield, msk, pos)   ((bitfield & msk) >> pos)
 Read bitfield. More...
 

Enumerations

enum  timer_user_op_type_t { TIMER_USER_OP_TYPE_NONE, TIMER_USER_OP_TYPE_START, TIMER_USER_OP_TYPE_STOP, TIMER_USER_OP_TYPE_STOP_ALL }
 Set of available timer operation types. More...
 
enum  ble_wpts_uuid128_t {
  BLE_WPTS_UUID128_PRU_SERVICE = 0, BLE_WPTS_UUID128_PRU_CONTROL_CHAR, BLE_WPTS_UUID128_PTU_STATIC_PARAMETER_CHAR, BLE_WPTS_UUID128_PRU_ALERT_CHAR,
  BLE_WPTS_UUID128_PRU_STATIC_PARAMETER_CHAR, BLE_WPTS_UUID128_PRU_DYNAMIC_PARAMETER_CHAR, BLE_WPTS_UUID128_CNT
}
 Identification of 128 bit UUIDs. More...
 

Functions

uint32_t ble_wpts_uuid_init (void)
 Prepare softdevice for using the WPTS 128 bit UUIDs. More...
 
void ble_wpts_uuid_get (ble_wpts_uuid128_t uuid128, ble_uuid_t *ble_uuid)
 Get ble_uuid representation of 128 bit UUID. More...
 

Detailed Description

Macro Definition Documentation

#define BLE_WPTS_SEC_MODE_1_LEVEL_1   BLE_GAP_CONN_SEC_MODE_SET_OPEN

Redefinition of security modees for mapping to spec

Definition at line 25 of file ble_wpts_common.h.

#define BLE_WPTS_SEC_MODE_1_LEVEL_2   BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM

Redefinition of security modees for mapping to spec

Definition at line 26 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_UUID_POS   0

Advertising data.

16-bit UUID byte offset

Definition at line 29 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_UUID_LEN   2

16-bit UUID length in bytes

Definition at line 30 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_SERVICE_HANDLE_POS   0

Advertising Service Data.

Service handle position

Definition at line 33 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_SERVICE_HANDLE_LEN   2

Service handle length

Definition at line 34 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_PRU_RSSI_PARAMS_POS   (BLE_WPTS_ADV_SERVICE_HANDLE_POS + BLE_WPTS_ADV_SERVICE_HANDLE_LEN)

PRU RSSI parameters position

Definition at line 36 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_PRU_RSSI_PARAMS_LEN   1

PRU RSSI parameters length

Definition at line 37 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_ANTENNA_GAIN_OFFSET   5

PRU antenna gain offset in [dB] for val in adv packet

Definition at line 39 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_ANTENNA_GAIN_UNKNOWN_VAL   0xFF

Value indicating "antenna gain unknown" in adv packet

Definition at line 40 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_PRU_TX_POWER_LEVEL_OFFSET   20

PRU tx level offset in [dBm] for val in adv packet

Definition at line 41 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_POWER_UNKNOWN_VAL   0xFF

Value indicating "TX power unknown" in adv packet

Definition at line 42 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_PRU_RSSI_PRU_GAIN_BITPOS   0

PRU antenna gain bit position offset

Definition at line 44 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_PRU_RSSI_PRU_GAIN_BITMSK   0x07

PRU antenna gain bitmask

Definition at line 45 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_PRU_RSSI_PRU_PWR_BITPOS   3

PRU output power bit position offset

Definition at line 46 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_PRU_RSSI_PRU_PWR_BITMSK   (0x1F << BLE_WPTS_ADV_PRU_RSSI_PRU_PWR_BITPOS)

PRU output power bitmask

Definition at line 47 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAGS_POS   (BLE_WPTS_ADV_PRU_RSSI_PARAMS_POS + BLE_WPTS_ADV_PRU_RSSI_PARAMS_LEN)

WPT advertising flags position offset

Definition at line 49 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAGS_LEN   1

WPT advertising flags bitmask

Definition at line 50 of file ble_wpts_common.h.

Total service data length

Definition at line 53 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_IMPEDANCE_SHIFT_BITPOS   5

Impedance shift bit position offset

Definition at line 55 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_IMPEDANCE_SHIFT_BITMSK   (0x07 << BLE_WPTS_ADV_FLAG_IMPEDANCE_SHIFT_BITPOS)

Impedance shift bitmask

Definition at line 56 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_BITPOS   4

Reboot indicator bit position offset

Definition at line 57 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_BITMSK   (1 << BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_BITPOS)

Reboot indicator bitmask

Definition at line 58 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_OVP_STATUS_BITPOS   3

OVP status bit position offset

Definition at line 59 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_OVP_STATUS_BITMSK   (1 << BLE_WPTS_ADV_FLAG_OVP_STATUS_BITPOS)

OVP status bitmask

Definition at line 60 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITPOS   2

Time set support bit position offset

Definition at line 61 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITMSK   (1 << BLE_WPTS_ADV_FLAG_TIME_SET_SUPPORT_BITPOS)

Time set support bitmask

Definition at line 62 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_REBOOTED_VAL   0

Value indicating that the PRU has rebooted

Definition at line 64 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_FLAG_REBOOT_INDICATOR_NOT_REBOOTED_VAL   1

Value indicating that the PRU has not rebooted

Definition at line 65 of file ble_wpts_common.h.

#define BLE_WPTS_ADV_SERVICE_DATA_LEN   (BLE_WPTS_ADV_FLAGS_POS + BLE_WPTS_ADV_FLAGS_LEN)

WPT Service data length

Definition at line 67 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CONTROL_ENABLES_POS   0

PRU Control characteristic fields byte positions.

PTU turn on, PTU on indication etc.

Definition at line 70 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CONTROL_PERMISSION_POS   1

PRU is permitted in PTU.

Definition at line 71 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CONTROL_TIME_SET_POS   2

PTU set up time [ms].

Definition at line 72 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_OUTPUT_BITPOS   7

PRU Control characteristic Enables bit field definitions.

PRU output enable bit position

Definition at line 75 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_OUTPUT_BITMSK   (0x01 << BLE_WPTS_ENABLE_PRU_OUTPUT_BITPOS)

PRU output enable bit mask

Definition at line 76 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_OUTPUT_ENABLE_VAL   0x01

PRU output enable value

Definition at line 77 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_OUTPUT_DISABLE_VAL   0x00

PRU output disable value

Definition at line 78 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_BITPOS   6

PRU charge indicator bit position

Definition at line 80 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_BITMSK   (0x01 << BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_BITPOS)

PRU charge indicator bit mask

Definition at line 81 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_ENABLE_VAL   0x01

PRU charge indicator enable value

Definition at line 82 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_CHARGE_INDICATOR_DISABLE_VAL   0x00

PRU charge indicator disable value

Definition at line 83 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_BITPOS   4

PRU adjust power field posistion

Definition at line 85 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_BITMSK   (0x03 << BLE_WPTS_ENABLE_PRU_ADJ_POWER_BITPOS)

PRU adjust power field mask

Definition at line 86 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_MAX_VAL   0x00

PRU adjust power value

Definition at line 87 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_66_PCT_VAL   0x01

PRU adjust power value

Definition at line 88 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_33_PCT_VAL   0x02

PRU adjust power value

Definition at line 89 of file ble_wpts_common.h.

#define BLE_WPTS_ENABLE_PRU_ADJ_POWER_2_5_W_VAL   0x03

PRU adjust power value

Definition at line 90 of file ble_wpts_common.h.

#define BLE_WPTS_PERMISSION_PERMITTED   0x00

PRU Control characteristic Permission field values.

Permitted without reason

Definition at line 93 of file ble_wpts_common.h.

#define BLE_WPTS_PERMISSION_PERMITTED_WAITING   0x01

Permitted with waiting time due to limited available power

Definition at line 94 of file ble_wpts_common.h.

#define BLE_WPTS_PERMISSION_DENIED_CC   0x80

Denied due to cross connection

Definition at line 95 of file ble_wpts_common.h.

#define BLE_WPTS_PERMISSION_DENIED_POWER   0x81

Denied due to limited affordable power

Definition at line 96 of file ble_wpts_common.h.

#define BLE_WPTS_PERMISSION_DENIED_DEVICES   0x82

Denied due to limited PTU Number of Devices

Definition at line 97 of file ble_wpts_common.h.

#define BLE_WPTS_PERMISSION_DENIED_CLASS   0x83

Denied due to limited PTU Class support

Definition at line 98 of file ble_wpts_common.h.

#define BLE_WPTS_PERMISSION_DENIED_HIGH_TEMP   0x84

Denied due to high temperature on PTU

Definition at line 99 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_DENIED   0x00

PRU Control characteristic Time set values.

Do not perform Time Set

Definition at line 102 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_10MS   0x01

10ms

Definition at line 103 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_20MS   0x02

20ms

Definition at line 104 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_30MS   0x03

30ms

Definition at line 105 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_40MS   0x04

40ms

Definition at line 106 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_50MS   0x05

50ms

Definition at line 107 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_60MS   0x06

60ms

Definition at line 108 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_70MS   0x07

70ms

Definition at line 109 of file ble_wpts_common.h.

#define BLE_WPTS_TIME_SET_80MS   0x08

80ms

Definition at line 110 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_OPTIONAL_FIELDS_POS   0

PTU Static Parameter characteristic byte positions.

Optional fields byte position.

Definition at line 113 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_PTU_POWER_POS   1

PTU Power byte position.

Definition at line 114 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_PTU_MAX_SRC_IMPED_POS   2

PTU maximum source impedance byte position.

Definition at line 115 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_PTU_MAX_LOAD_RES_POS   3

PTU maximum load resistance byte position.

Definition at line 116 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_PTU_CLASS_POS   6

PTU Class byte position.

Definition at line 117 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_HW_REV_POS   7

Hardware revision byte position.

Definition at line 118 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_FW_REV_POS   8

Firmware revision byte position.

Definition at line 119 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_PROTOCOL_REV_POS   9

Protocol revision byte position.

Definition at line 120 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_SUPPORTED_POS   10

Number of devices supported byte position.

Definition at line 121 of file ble_wpts_common.h.

#define BLE_WPTS_OPTION_INVALID_VAL   0

Common bitifeld valus.

Optional field invalid

Definition at line 124 of file ble_wpts_common.h.

#define BLE_WPTS_OPTION_VALID_VAL   1

Optional field valid

Definition at line 125 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_OPTION_MAX_IMPEDANCE_BITPOS   0x07

PTU Static characteristic Option bitfield definitions.

Max source impedance option bit position

Definition at line 128 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_OPTION_MAX_IMPEDANCE_BITMSK   (0x01 << BLE_WPTS_PTU_STATIC_OPTION_MAX_IMPEDANCE_BITPOS)

Max source impedance option bit mask

Definition at line 129 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_OPTION_MAX_RESISTANCE_BITPOS   0x06

Max load resistance option bit position

Definition at line 131 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_OPTION_MAX_RESISTANCE_BITMSK   (0x01 << BLE_WPTS_PTU_STATIC_OPTION_MAX_RESISTANCE_BITPOS)

Max load resistance option bit mask

Definition at line 132 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_BITPOS   3

PTU Static characteristic PTU Max Source Impedance bitfield.

PTU Max Source Impedance value posistion.

Definition at line 135 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_BITMSK   (0x1F << BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_BITPOS)

PTU Max Source Impedance value mask.

Definition at line 136 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_50_VAL   0

50

Definition at line 137 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_60_VAL   1

60

Definition at line 138 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_70_VAL   2

70

Definition at line 139 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_80_VAL   3

80

Definition at line 140 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_90_VAL   4

90

Definition at line 141 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_100_VAL   5

100

Definition at line 142 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_110_VAL   6

110

Definition at line 143 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_120_VAL   7

120

Definition at line 144 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_130_VAL   8

130

Definition at line 145 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_140_VAL   9

140

Definition at line 146 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_150_VAL   10

150

Definition at line 147 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_175_VAL   11

175

Definition at line 148 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_200_VAL   12

200

Definition at line 149 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_225_VAL   13

225

Definition at line 150 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_250_VAL   14

250

Definition at line 151 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_275_VAL   15

275

Definition at line 152 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_300_VAL   16

300

Definition at line 153 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_350_VAL   17

350

Definition at line 154 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_SOURCE_IMPEDANCE_375_VAL   18

375

Definition at line 155 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_BITPOS   3

PTU Static characteristic PTU Max Load Resistance bitfield.

PTU Max Load Resistance value posistion.

Definition at line 158 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_BITMSK   (0x1F << BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_BITPOS)

PTU Max Load Resistance value mask.

Definition at line 159 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_5_VAL   0

5

Definition at line 160 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_10_VAL   1

10

Definition at line 161 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_15_VAL   2

15

Definition at line 162 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_20_VAL   3

20

Definition at line 163 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_25_VAL   4

25

Definition at line 164 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_30_VAL   5

30

Definition at line 165 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_35_VAL   6

35

Definition at line 166 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_40_VAL   7

40

Definition at line 167 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_45_VAL   8

45

Definition at line 168 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_50_VAL   9

50

Definition at line 169 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_MAX_LOAD_RESISTANCE_55_VAL   10

55

Definition at line 170 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_BITPOS   0

PTU Static characteristic PTU MAx Number of Devices Supported field.

Max number of devices value posistion.

Definition at line 173 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_BITMSK   (0x0F << BLE_WPTS_PTU_STATIC_NUM_DEVICES_BITPOS)

Max number of devices value mask.

Definition at line 174 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_1_VAL   0

1

Definition at line 175 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_2_VAL   1

2

Definition at line 176 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_3_VAL   2

3

Definition at line 177 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_4_VAL   3

4

Definition at line 178 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_5_VAL   4

5

Definition at line 179 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_6_VAL   5

6

Definition at line 180 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_7_VAL   6

7

Definition at line 181 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_NUM_DEVICES_8_VAL   7

8

Definition at line 182 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_CLASS_1   0

PTU Static characteristic PTU Class field.

Class 1

Definition at line 185 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_CLASS_2   1

Class 2

Definition at line 186 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_CLASS_3   2

Class 3

Definition at line 187 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_CLASS_4   3

Class 4

Definition at line 188 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_CLASS_5   4

Class 5

Definition at line 189 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_CLASS_6   5

Class 6

Definition at line 190 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_OPTIONAL_FIELDS_POS   0

PRU Static Parameter characteristic byte positions.

Optional fields byte position.

Definition at line 193 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_PROTOCOL_REV_POS   1

Protocol revision byte position.

Definition at line 194 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_PRU_CATEGORY_POS   3

PRU Category byte position.

Definition at line 195 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_PRU_INFORMATION_POS   4

PRU Information byte position.

Definition at line 196 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_HW_REV_POS   5

Hardware revision byte position.

Definition at line 197 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_FW_REV_POS   6

Firmware revision byte position.

Definition at line 198 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_PRECT_MAX_POS   7

PRECT_MAX byte position.

Definition at line 199 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_VRECT_MIN_STATIC_POS   8

VRECT_MIN_STATIC byte position.

Definition at line 200 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_VRECT_HIGH_STATIC_POS   10

VRECT_HIGH_STATIC byte position.

Definition at line 201 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_VRECT_SET_POS   12

VRECT SET byte position.

Definition at line 202 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_DELTA_R1_POS   14

Delta R1 byte position.

Definition at line 203 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_OPTION_DELTA_R1_BITPOS   0x07

PRU Static characteristic Option field.

Max impedance value position

Definition at line 206 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_OPTION_DELTA_R1_BITMSK   (0x01 << BLE_WPTS_PRU_STATIC_OPTION_DELTA_R1_BITPOS)

Max impedance value mask

Definition at line 207 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_NO_IMP_SHIFT   0

PRU Static characteristic PRU Category field.

Can never create impedance shift

Definition at line 210 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_1   1

Category 1

Definition at line 211 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_2   2

Category 2

Definition at line 212 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_3   3

Category 3

Definition at line 213 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_4   4

Category 4

Definition at line 214 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_5   5

Category 5

Definition at line 215 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_6   6

Category 6

Definition at line 216 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CATEGORY_7   7

Category 7

Definition at line 217 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_NFC_BITPOS   0x07

PRU Static characteristic PRU Information field.

NFC supported bit position.

Definition at line 220 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_NFC_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_NFC_BITPOS)

NFC supported bit mask.

Definition at line 221 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_NFC_SUPPORTED_VAL   1

NFC supported value.

Definition at line 222 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_NFC_NOT_SUPPORTED_VAL   0

NFC not supported value.

Definition at line 223 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_BLE_BITPOS   0x06

Separate BTLE radio in PRU bit position.

Definition at line 225 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_BLE_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_BLE_BITPOS)

Separate BTLE radio in PRU bit mask.

Definition at line 226 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_BLE_SUPPORTED_VAL   0x01

Separate BTLE radio in PRU supported value.

Definition at line 227 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_BLE_NOT_SUPPORTED_VAL   0x00

Separate BTLE radio in PRU not supported value.

Definition at line 228 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_BITPOS   0x05

Power control algorithm preference value position.

Definition at line 230 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_BITPOS)

Power control algorithm preference value mask.

Definition at line 231 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_VRECT_MIN_ERROR_VAL   0x00

Vrect min errror value.

Definition at line 232 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_POWER_CONTROL_PREF_MAX_SYS_EFC_VAL   0x01

Max system efficiency value.

Definition at line 233 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_ADJUST_POWER_BITPOS   0x04

Adjust power capability value position.

Definition at line 235 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_ADJUST_POWER_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_ADJUST_POWER_BITPOS)

Adjust power capability value mask.

Definition at line 236 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_ADJUST_POWER_SUPPORTED_VAL   0x01

Adjust PRU power supported value.

Definition at line 237 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_ADJUST_POWER_NOT_SUPPORTED_VAL   0x00

Adjust PRU power not supported value.

Definition at line 238 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_BITPOS   0x03

Charge Completed Connected Mode value position.

Definition at line 240 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_BITPOS)

Charge Completed Connected Mode value mask.

Definition at line 241 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_SUPPORTED_VAL   0x01

Charge Completed Connected Mode supported value.

Definition at line 242 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_CHARGE_COMPLETE_CONN_MODE_NOT_SUPPORTED_VAL   0x00

Charge Completed Connected Mode not supported value.

Definition at line 243 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_BITPOS   0x02

PTU Test Mode value position.

Definition at line 245 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_BITMSK   (0x01 << BLE_WPTS_PRU_INFO_PTU_TEST_MODE_BITPOS)

PTU Test Mode value mask.

Definition at line 246 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_ENABLED_VAL   0x01

PTU Test Mode enabled value.

Definition at line 247 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_INFO_PTU_TEST_MODE_DISABLED_VAL   0x00

PTU Test Mode disabled value.

Definition at line 248 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_ALERT_CHARGE_PORT_BITPOS   0x01

PRU dynamic characteristic Alert bitfield. Remaining bitifields is the same as PRU Alert characteristic bitfields.

Mode Transition bits

Definition at line 253 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_ALERT_CHARGE_PORT_BITMSK   (0x01 << BLE_WPTS_PRU_DYNAMIC_ALERT_CHARGE_PORT_BITPOS)

Wired Charger Detect

Definition at line 254 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_ALERT_ADJ_POWER_RESP_BITPOS   0x00

Adjust power bit position

Definition at line 255 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_ALERT_ADJ_POWER_RESP_BITMSK   (0x01 << BLE_WPTS_PRU_DYNAMIC_ALERT_ADJ_POWER_RESP_BITPOS)

Adjust power bitmask

Definition at line 256 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTIONAL_FIELDS_POS   0

PRU dynamic characteristic byte positions.

Optional fields byte position.

Definition at line 259 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_VRECT_POS   1

VRECT byte position.

Definition at line 260 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_IRECT_POS   3

IRECT byte position.

Definition at line 261 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_VOUT_POS   5

VOUT byte position.

Definition at line 262 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_IOUT_POS   7

IOUT byte position.

Definition at line 263 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_TEMPERATURE_POS   9

TEMPERATURE byte position.

Definition at line 264 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_VRECT_MIN_DYN_POS   10

VRECT_MIN_DYN byte position.

Definition at line 265 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_VRECT_SET_DYN_POS   12

VRECT_SET_DYN byte position.

Definition at line 266 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_VRECT_HIGH_DYN_POS   14

VRECT_HIGH_DYN byte position.

Definition at line 267 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_PRU_ALERT_POS   16

PRU_ALERT byte position.

Definition at line 268 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_PTU_TESTER_COMMAND_POS   17

PTU_TESTER_COMMAND byte position.

Definition at line 269 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VOUT_BITPOS   7

PRU Dynamic Parameter characteristic Option field.

Vout

Definition at line 272 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_IOUT_BITPOS   6

Iout

Definition at line 273 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_TEMPERATURE_BITPOS   5

Temperature

Definition at line 274 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_MIN_DYN_BITPOS   4

Vrect_min_dyn

Definition at line 275 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_SET_DYN_BITPOS   3

Vrect_set_dyn

Definition at line 276 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_HIGH_DYN_BITPOS   2

Vrect_high_dyn

Definition at line 277 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VOUT_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VOUT_BITPOS)

Vout

Definition at line 279 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_IOUT_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_IOUT_BITPOS)

Iout

Definition at line 280 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_TEMPERATURE_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_TEMPERATURE_BITPOS)

Temperature

Definition at line 281 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_MIN_DYN_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_MIN_DYN_BITPOS)

Vrect_min_dyn

Definition at line 282 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_SET_DYN_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_SET_DYN_BITPOS)

Vrect_set_dyn

Definition at line 283 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_HIGH_DYN_BITMSK   (1 << BLE_WPTS_PRU_DYNAMIC_OPTION_VRECT_HIGH_DYN_BITPOS)

Vrect_high_dyn

Definition at line 284 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_POS   0

PRU alert characteristic byte positions.

Alert bitfield.

Definition at line 287 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ADDRESS_POS   1

Device address.

Definition at line 288 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_OVER_VOLTAGE_BITPOS   0x07

PRU Alert characteristic value bitfield.

Overvoltage bit posistion

Definition at line 291 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_OVER_VOLTAGE_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_OVER_VOLTAGE_BITPOS)

Overvoltage value mask

Definition at line 292 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_OVER_CURRENT_BITPOS   0x06

Overcurrent bit posistion

Definition at line 293 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_OVER_CURRENT_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_OVER_CURRENT_BITPOS)

Overcurrent bit mask

Definition at line 294 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_OVER_TEMPERATURE_BITPOS   0x05

Overtemp bit position

Definition at line 295 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_OVER_TEMPERATURE_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_OVER_TEMPERATURE_BITPOS)

Overtemp bit mask

Definition at line 296 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_SELF_PROTECTION_BITPOS   0x04

Self protection bit position

Definition at line 297 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_SELF_PROTECTION_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_SELF_PROTECTION_BITPOS)

Self protection bit mask

Definition at line 298 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_CHARGE_COMPLETE_BITPOS   0x03

Charge Complete bit position

Definition at line 299 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_CHARGE_COMPLETE_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_CHARGE_COMPLETE_BITPOS)

Charge Complete bit mask

Definition at line 300 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_WIRED_CHARGER_DETECT_BITPOS   0x02

Wired Charger Detect bit position

Definition at line 301 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_WIRED_CHARGER_DETECT_BITMSK   (0x01 << BLE_WPTS_PRU_ALERT_WIRED_CHARGER_DETECT_BITPOS)

Wired Charger Detect bit mask

Definition at line 302 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MODE_TRANSITION_BITPOS   0x00

Mode Transition bit position

Definition at line 303 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MODE_TRANSITION_BITMSK   (0x03 << BLE_WPTS_PRU_ALERT_MODE_TRANSITION_BITPOS)

Mode Transition bit mask

Definition at line 304 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_NO_SELF_PROTECTION_VAL   0x00

No self protection

Definition at line 305 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MODE_NO_MODE_TRANSITION_VAL   0x00

PRU Alert Mode transition.

No Mode Transition

Definition at line 308 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MODE_2S_MODE_TRANSITION_VAL   0x01

2s Mode Transition

Definition at line 309 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MODE_3S_MODE_TRANSITION_VAL   0x02

3s Mode Transition

Definition at line 310 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MODE_6S_MODE_TRANSITION_VAL   0x03

6s Mode Transition

Definition at line 311 of file ble_wpts_common.h.

#define BLE_WPTS_UUID16   0xFFFE

WPT Service UUIDs.

16 bit WPT Service.

Definition at line 314 of file ble_wpts_common.h.

#define BLE_WPTS_UUID16_LEN   2

Length in bytes of 16-bit UUID.

Definition at line 315 of file ble_wpts_common.h.

#define BLE_WPTS_UUID128_CHAR_BASE   {0x67, 0x9A, 0x0C, 0x20, 0x00, 0x08, 0x96, 0x9E, 0xE2, 0x11, 0x46, 0xA1, 0x70, 0xE6, 0x55, 0x64}

Full 128 bit WPT Service.

Definition at line 316 of file ble_wpts_common.h.

#define BLE_WPTS_UUID128_LEN   16

Length in bytes of 128-bit UUID.

Definition at line 317 of file ble_wpts_common.h.

#define BLE_WPTS_UUID_PRU_CONTROL_CHAR_OFFSET   0

UUID byte 0 offset relative to 128-bit base byte 0.

Definition at line 318 of file ble_wpts_common.h.

#define BLE_WPTS_UUID_PTU_STATIC_PARAMETER_CHAR_OFFSET   1

UUID byte 0 offset relative to 128-bit base byte 0.

Definition at line 319 of file ble_wpts_common.h.

#define BLE_WPTS_UUID_PRU_ALERT_CHAR_OFFSET   2

UUID byte 0 offset relative to 128-bit base byte 0.

Definition at line 320 of file ble_wpts_common.h.

#define BLE_WPTS_UUID_PRU_STATIC_PARAMETER_CHAR_OFFSET   3

UUID byte 0 offset relative to 128-bit base byte 0.

Definition at line 321 of file ble_wpts_common.h.

#define BLE_WPTS_UUID_PRU_DYNAMIC_PARAMETER_CHAR_OFFSET   4

UUID byte 0 offset relative to 128-bit base byte 0.

Definition at line 322 of file ble_wpts_common.h.

#define BLE_WPTS_MODIFIED_BYTE   0

Byte number of WPT Service UUID modified to generate other 128 bit UUIDs

Definition at line 323 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_PRU_CONTROL   2

WPT Service Characteristic value handles offset relative to primary service handle.

Offset of PRU Control characteristic relative to WPT Service handle.

Definition at line 326 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_PTU_STATIC   4

Offset of PTU Static characteristic relative to WPT Service handle.

Definition at line 327 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_PRU_ALERT   6

Offset of PRU Alert characteristic relative to WPT Service handle.

Definition at line 328 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_PRU_ALERT_CCCD   7

Offset of PRU Alert CCCD relative to WPT Service handle.

Definition at line 329 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_PRU_STATIC   9

Offset of PRU Static characteristic relative to WPT Service handle.

Definition at line 330 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_PRU_DYNAMIC   11

Offset of PRU Dynamic characteristic relative to WPT Service handle.

Definition at line 331 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_MIN   2

Minimum offset of WPT Service characteristics relative to WPT Service handle.

Definition at line 332 of file ble_wpts_common.h.

#define BLE_WPTS_HANDLE_OFFSET_MAX   11

Maximum offset of WPT Service characteristics relative to WPT Service handle.

Definition at line 333 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_CONTROL_LEN   5

Characteristic value lengths.

PRU Control characteristic length.

Definition at line 336 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_STATIC_LEN   17

PTU Static characteristic length.

Definition at line 337 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MIN_LEN   1

PRU Alert characteristic minimum length.

Definition at line 338 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_ALERT_MAX_LEN   7

PRU Alert characteristic maximum length.

Definition at line 339 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_STATIC_LEN   20

PRU Static characteristic length.

Definition at line 340 of file ble_wpts_common.h.

#define BLE_WPTS_PRU_DYNAMIC_LEN   20

PRU Dynamic characteristiclength.

Definition at line 341 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_1W   0

PTU Static characteristic PTU Power field.

Undocumented

Definition at line 344 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_2W   1

Undocumented

Definition at line 345 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_3W   2

Undocumented

Definition at line 346 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_4W   3

Undocumented

Definition at line 347 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_5W   4

Undocumented

Definition at line 348 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_6W   5

Undocumented

Definition at line 349 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_7W   6

Undocumented

Definition at line 350 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_8W   7

Undocumented

Definition at line 351 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_0_9W   8

Undocumented

Definition at line 352 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_0W   10

Undocumented

Definition at line 353 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_1W   11

Undocumented

Definition at line 354 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_2W   12

Undocumented

Definition at line 355 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_3W   13

Undocumented

Definition at line 356 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_4W   14

Undocumented

Definition at line 357 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_5W   15

Undocumented

Definition at line 358 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_6W   16

Undocumented

Definition at line 359 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_7W   17

Undocumented

Definition at line 360 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_8W   18

Undocumented

Definition at line 361 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_1_9W   19

Undocumented

Definition at line 362 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_2_0W   20

Undocumented

Definition at line 363 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_2_2W   21

Undocumented

Definition at line 365 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_2_4W   22

Undocumented

Definition at line 366 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_2_6W   23

Undocumented

Definition at line 367 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_2_8W   24

Undocumented

Definition at line 368 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_3_0W   25

Undocumented

Definition at line 369 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_3_2W   26

Undocumented

Definition at line 370 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_3_4W   27

Undocumented

Definition at line 371 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_3_6W   28

Undocumented

Definition at line 372 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_3_8W   29

Undocumented

Definition at line 373 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_4_0W   30

Undocumented

Definition at line 374 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_4_2W   31

Undocumented

Definition at line 375 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_4_4W   32

Undocumented

Definition at line 376 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_4_6W   33

Undocumented

Definition at line 377 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_4_8W   34

Undocumented

Definition at line 378 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_5_0W   35

Undocumented

Definition at line 379 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_5_2W   36

Undocumented

Definition at line 380 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_5_4W   37

Undocumented

Definition at line 381 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_5_6W   38

Undocumented

Definition at line 382 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_5_8W   39

Undocumented

Definition at line 383 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_6_0W   40

Undocumented

Definition at line 385 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_6_3W   41

Undocumented

Definition at line 386 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_6_6W   42

Undocumented

Definition at line 387 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_6_9W   43

Undocumented

Definition at line 388 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_7_2W   44

Undocumented

Definition at line 389 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_7_5W   45

Undocumented

Definition at line 390 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_7_8W   46

Undocumented

Definition at line 391 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_8_1W   47

Undocumented

Definition at line 392 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_8_4W   48

Undocumented

Definition at line 393 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_8_7W   49

Undocumented

Definition at line 394 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_9_0W   50

Undocumented

Definition at line 395 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_9_3W   51

Undocumented

Definition at line 396 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_9_6W   52

Undocumented

Definition at line 397 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_9_9W   53

Undocumented

Definition at line 398 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_10_2W   54

Undocumented

Definition at line 399 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_10_5W   55

Undocumented

Definition at line 400 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_10_8W   56

Undocumented

Definition at line 401 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_11_1W   57

Undocumented

Definition at line 402 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_11_4W   58

Undocumented

Definition at line 403 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_11_7W   59

Undocumented

Definition at line 404 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_12_0W   60

Undocumented

Definition at line 406 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_12_4W   61

Undocumented

Definition at line 407 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_12_8W   62

Undocumented

Definition at line 408 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_13_2W   63

Undocumented

Definition at line 409 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_13_6W   64

Undocumented

Definition at line 410 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_13_0W   65

Undocumented

Definition at line 411 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_14_4W   66

Undocumented

Definition at line 412 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_14_8W   67

Undocumented

Definition at line 413 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_15_2W   68

Undocumented

Definition at line 414 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_15_6W   69

Undocumented

Definition at line 415 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_16_0W   70

Undocumented

Definition at line 416 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_16_4W   71

Undocumented

Definition at line 417 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_16_8W   72

Undocumented

Definition at line 418 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_17_2W   73

Undocumented

Definition at line 419 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_17_6W   74

Undocumented

Definition at line 420 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_18_0W   75

Undocumented

Definition at line 421 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_18_4W   76

Undocumented

Definition at line 422 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_18_8W   77

Undocumented

Definition at line 423 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_19_2W   78

Undocumented

Definition at line 424 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_19_6W   79

Undocumented

Definition at line 425 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_20_0W   80

Undocumented

Definition at line 427 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_20_5W   81

Undocumented

Definition at line 428 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_21_0W   82

Undocumented

Definition at line 429 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_21_5W   83

Undocumented

Definition at line 430 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_22_0W   84

Undocumented

Definition at line 431 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_22_5W   85

Undocumented

Definition at line 432 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_23_0W   86

Undocumented

Definition at line 433 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_23_5W   87

Undocumented

Definition at line 434 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_24_0W   88

Undocumented

Definition at line 435 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_24_5W   89

Undocumented

Definition at line 436 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_25_0W   90

Undocumented

Definition at line 437 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_25_5W   91

Undocumented

Definition at line 438 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_26_0W   92

Undocumented

Definition at line 439 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_26_5W   93

Undocumented

Definition at line 440 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_27_0W   94

Undocumented

Definition at line 441 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_27_5W   95

Undocumented

Definition at line 442 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_28_0W   96

Undocumented

Definition at line 443 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_28_5W   97

Undocumented

Definition at line 444 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_29_0W   98

Undocumented

Definition at line 445 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_29_5W   99

Undocumented

Definition at line 446 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_30_0W   100

Undocumented

Definition at line 448 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_30_6W   101

Undocumented

Definition at line 449 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_31_2W   102

Undocumented

Definition at line 450 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_31_8W   103

Undocumented

Definition at line 451 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_32_4W   104

Undocumented

Definition at line 452 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_33_0W   105

Undocumented

Definition at line 453 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_33_6W   106

Undocumented

Definition at line 454 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_34_2W   107

Undocumented

Definition at line 455 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_34_8W   108

Undocumented

Definition at line 456 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_35_4W   109

Undocumented

Definition at line 457 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_36_0W   110

Undocumented

Definition at line 458 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_36_6W   111

Undocumented

Definition at line 459 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_37_2W   112

Undocumented

Definition at line 460 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_37_8W   113

Undocumented

Definition at line 461 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_38_4W   114

Undocumented

Definition at line 462 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_39_0W   115

Undocumented

Definition at line 463 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_39_6W   116

Undocumented

Definition at line 464 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_40_2W   117

Undocumented

Definition at line 465 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_40_8W   118

Undocumented

Definition at line 466 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_41_4W   119

Undocumented

Definition at line 467 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_42_0W   120

Undocumented

Definition at line 469 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_43_0W   121

Undocumented

Definition at line 470 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_44_0W   122

Undocumented

Definition at line 471 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_45_0W   123

Undocumented

Definition at line 472 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_46_0W   124

Undocumented

Definition at line 473 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_47_0W   125

Undocumented

Definition at line 474 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_48_0W   126

Undocumented

Definition at line 475 of file ble_wpts_common.h.

#define BLE_WPTS_PTU_POWER_49_0W   127

Undocumented

Definition at line 476 of file ble_wpts_common.h.

#define BLE_WPTS_BITFIELD_WRITE (   bitfield,
  msk,
  pos,
  val 
)
Value:
do{ \
bitfield = (bitfield & ~msk) | ((val << pos) & msk); \
} while(0);

Write bitfield.

Parameters
[in]bitfieldbitfield to be modified
[in]mskmask for bitfield
[in]posposition for bitfield
[in]valvalue to be written

Definition at line 530 of file ble_wpts_common.h.

#define BLE_WPTS_BITFIELD_READ (   bitfield,
  msk,
  pos 
)    ((bitfield & msk) >> pos)

Read bitfield.

Parameters
[in]bitfieldbitfield to be read
[in]mskmask for bit/value to be read
[in]posposition for bit/value to be read
Returns
Value of field.

Definition at line 542 of file ble_wpts_common.h.

Enumeration Type Documentation

Set of available timer operation types.

Enumerator
TIMER_USER_OP_TYPE_NONE 

No timer operation

TIMER_USER_OP_TYPE_START 

Timer operation type Start.

TIMER_USER_OP_TYPE_STOP 

Timer operation type Stop.

TIMER_USER_OP_TYPE_STOP_ALL 

Timer operation type Stop All.

Definition at line 489 of file ble_wpts_common.h.

Identification of 128 bit UUIDs.

Enumerator
BLE_WPTS_UUID128_PRU_SERVICE 

WPT Service UUID.

BLE_WPTS_UUID128_PRU_CONTROL_CHAR 

PRU Control Characteristic UUID.

BLE_WPTS_UUID128_PTU_STATIC_PARAMETER_CHAR 

PTU Static Parameter Characteristic UUID.

BLE_WPTS_UUID128_PRU_ALERT_CHAR 

PRU Alert Characteristic UUID.

BLE_WPTS_UUID128_PRU_STATIC_PARAMETER_CHAR 

PRU Static Parameter Characteristic UUID.

BLE_WPTS_UUID128_PRU_DYNAMIC_PARAMETER_CHAR 

PRU Dynamic Parameter Characteristic UUID.

Definition at line 498 of file ble_wpts_common.h.

Function Documentation

uint32_t ble_wpts_uuid_init ( void  )

Prepare softdevice for using the WPTS 128 bit UUIDs.

Returns
NRF_SUCCESS on successful initialization of UUIDs, otherwise an error code.

Definition at line 40 of file ble_wpts_common.c.

41 {
42  uint32_t err_code;
43  uint8_t i;
44  uint16_t uuid16;
45  uint8_t ref_byte;
46  ble_uuid128_t uuid128 = {BLE_WPTS_UUID128_CHAR_BASE};
47  ref_byte = uuid128.uuid128[BLE_WPTS_MODIFIED_BYTE];
48 
49  // Create 16-bit representations of 128-bit characteristics
50  uuid16 = uint16_decode(&uuid128.uuid128[12]);
51  for(i = 0; i < BLE_WPTS_UUID128_CNT; i++)
52  {
53  m_uuids128[i].uuid = uuid16;
54  }
55 
56  // Add PRU Control char UUID
57  uuid128.uuid128[BLE_WPTS_MODIFIED_BYTE] = (ref_byte + BLE_WPTS_UUID_PRU_CONTROL_CHAR_OFFSET);
58  err_code = sd_ble_uuid_vs_add(&uuid128, &m_uuids128[BLE_WPTS_UUID128_PRU_CONTROL_CHAR].type);
59  if (err_code != NRF_SUCCESS)
60  {
61  return err_code;
62  }
63 
64  // Add PTU Static Parameter Char UUID
66  err_code = sd_ble_uuid_vs_add(&uuid128, &m_uuids128[BLE_WPTS_UUID128_PTU_STATIC_PARAMETER_CHAR].type);
67  if (err_code != NRF_SUCCESS)
68  {
69  return err_code;
70  }
71 
72  // Add PRU Alert Char UUID
73  uuid128.uuid128[BLE_WPTS_MODIFIED_BYTE] = (ref_byte + BLE_WPTS_UUID_PRU_ALERT_CHAR_OFFSET);
74  err_code = sd_ble_uuid_vs_add(&uuid128, &m_uuids128[BLE_WPTS_UUID128_PRU_ALERT_CHAR].type);
75  if (err_code != NRF_SUCCESS)
76  {
77  return err_code;
78  }
79 
80  // Add PRU Static Parameter Char UUID
82  err_code = sd_ble_uuid_vs_add(&uuid128, &m_uuids128[BLE_WPTS_UUID128_PRU_STATIC_PARAMETER_CHAR].type);
83  if (err_code != NRF_SUCCESS)
84  {
85  return err_code;
86  }
87 
88  // Add PRU Dynamic Parameter Char UUID
90  err_code = sd_ble_uuid_vs_add(&uuid128, &m_uuids128[BLE_WPTS_UUID128_PRU_DYNAMIC_PARAMETER_CHAR].type);
91  if (err_code != NRF_SUCCESS)
92  {
93  return err_code;
94  }
95 
97 
98  return NRF_SUCCESS;
99 }
#define BLE_WPTS_UUID_PRU_ALERT_CHAR_OFFSET
bool wpts_uuids_initialized
#define BLE_WPTS_MODIFIED_BYTE
static ble_uuid_t m_uuids128[BLE_WPTS_UUID128_CNT]
#define BLE_WPTS_UUID_PRU_DYNAMIC_PARAMETER_CHAR_OFFSET
#define BLE_WPTS_UUID_PRU_STATIC_PARAMETER_CHAR_OFFSET
#define BLE_WPTS_UUID_PTU_STATIC_PARAMETER_CHAR_OFFSET
#define BLE_WPTS_UUID128_CHAR_BASE
#define BLE_WPTS_UUID_PRU_CONTROL_CHAR_OFFSET
void ble_wpts_uuid_get ( ble_wpts_uuid128_t  uuid128,
ble_uuid_t *  ble_uuid 
)

Get ble_uuid representation of 128 bit UUID.

Parameters
[in]uuid128
[out]ble_uuid
Returns
NRF_SUCCESS on successful initialization of UUIDs, otherwise an error code.

Definition at line 101 of file ble_wpts_common.c.

102 {
103  ASSERT(wpts_uuids_initialized);
104  *ble_uuid = m_uuids128[uuid128];
105 }
bool wpts_uuids_initialized
static ble_uuid_t m_uuids128[BLE_WPTS_UUID128_CNT]