BLE Utils declarations.
Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Macros | |
#define | ALL_UNUSED(...) ALL_UNUSED_IMPL( VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ) |
#define | ALL_UNUSED_IMPL(nargs) ALL_UNUSED_IMPL_(nargs) |
#define | ALL_UNUSED_IMPL_(nargs) UNUSED ## nargs |
#define | BLE_BROADCASTER (0x05) |
#define | BLE_CENTRAL (0x01) |
#define | BLE_CENTRAL_AND_PERIPHERAL (0x03) |
#define | BLE_OBSERVER (0x04) |
#define | BLE_PERIPHERAL (0x02) |
#define | DBG_LOG |
#define | DBG_LOG_CONT printf |
#define | DBG_LOG_DEV ALL_UNUSED |
#define | IEEE11073_EXPONENT (0xFF000000) |
#define | IEEE754_MANTISA(val) ((uint32_t)(val * 10)) |
#define | IEEE754_TO_IEEE11073_FLOAT(f_val) |
#define | UNUSED1(x) (void)(x) |
#define | UNUSED2(x, y) (void)(x),(void)(y) |
#define | UNUSED3(x, y, z) (void)(x),(void)(y),(void)(z) |
#define | UNUSED4(a, x, y, z) (void)(a),(void)(x),(void)(y),(void)(z) |
#define | UNUSED5(a, b, x, y, z) (void)(a),(void)(b),(void)(x),(void)(y),(void)(z) |
#define | UNUSED6(a, b, c, x, y, z) (void)(a),(void)(b),(void)(c),(void)(x),(void)(y),(void)(z) |
#define | UNUSED7(a, b, c, d, x, y, z) (void)(a),(void)(b),(void)(c),(void)(d),(void)(x),(void)(y),(void)(z) |
#define | UNUSED8(a, b, c, d, e, x, y, z) (void)(a),(void)(b),(void)(c),(void)(d),(void)(e),(void)(x),(void)(y),(void)(z) |
#define | VA_NUM_ARGS(...) VA_NUM_ARGS_IMPL(__VA_ARGS__, 8, 7, 6, 5, 4, 3, 2, 1) |
#define | VA_NUM_ARGS_IMPL(_1, _2, _3, _4, _5, _6, _7, _8, N,...) N |
Functions | |
static uint32_t | convert_ieee754_ieee11073_float (float f_val) |
#define ALL_UNUSED | ( | ... | ) | ALL_UNUSED_IMPL( VA_NUM_ARGS(__VA_ARGS__))(__VA_ARGS__ ) |
#define ALL_UNUSED_IMPL | ( | nargs | ) | ALL_UNUSED_IMPL_(nargs) |
#define ALL_UNUSED_IMPL_ | ( | nargs | ) | UNUSED ## nargs |
#define BLE_BROADCASTER (0x05) |
#define BLE_CENTRAL (0x01) |
#define BLE_CENTRAL_AND_PERIPHERAL (0x03) |
#define BLE_OBSERVER (0x04) |
#define BLE_PERIPHERAL (0x02) |
#define DBG_LOG |
Referenced by ble_conn_param_update(), ble_connected_state_handler(), ble_device_init(), ble_disconnected_state_handler(), ble_encryption_status_change_handler(), ble_init(), ble_pair_done_handler(), ble_pair_key_request_handler(), ble_pair_request_handler(), ble_scan_info_handler(), ble_scan_report_handler(), ble_send_slave_sec_request(), ble_slave_security_handler(), gap_dev_scan(), lls_alert_read_response(), pxp_monitor_characteristic_found_handler(), pxp_monitor_connect_request(), pxp_monitor_discovery_complete_handler(), pxp_monitor_init(), pxp_monitor_pair_done_handler(), pxp_monitor_scan_data_handler(), pxp_monitor_service_discover(), pxp_monitor_service_found_handler(), pxp_monitor_start_scan(), and txps_power_read_response().
#define DBG_LOG_CONT printf |
Referenced by ble_pair_key_request_handler(), lls_alert_read_response(), and pxp_monitor_scan_data_handler().
#define DBG_LOG_DEV ALL_UNUSED |
#define IEEE11073_EXPONENT (0xFF000000) |
#define IEEE754_MANTISA | ( | val | ) | ((uint32_t)(val * 10)) |
#define IEEE754_TO_IEEE11073_FLOAT | ( | f_val | ) |
Referenced by convert_ieee754_ieee11073_float().
#define UNUSED1 | ( | x | ) | (void)(x) |
#define UNUSED2 | ( | x, | |
y | |||
) | (void)(x),(void)(y) |
#define UNUSED3 | ( | x, | |
y, | |||
z | |||
) | (void)(x),(void)(y),(void)(z) |
#define UNUSED4 | ( | a, | |
x, | |||
y, | |||
z | |||
) | (void)(a),(void)(x),(void)(y),(void)(z) |
#define UNUSED5 | ( | a, | |
b, | |||
x, | |||
y, | |||
z | |||
) | (void)(a),(void)(b),(void)(x),(void)(y),(void)(z) |
#define UNUSED6 | ( | a, | |
b, | |||
c, | |||
x, | |||
y, | |||
z | |||
) | (void)(a),(void)(b),(void)(c),(void)(x),(void)(y),(void)(z) |
#define UNUSED7 | ( | a, | |
b, | |||
c, | |||
d, | |||
x, | |||
y, | |||
z | |||
) | (void)(a),(void)(b),(void)(c),(void)(d),(void)(x),(void)(y),(void)(z) |
#define UNUSED8 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
y, | |||
z | |||
) | (void)(a),(void)(b),(void)(c),(void)(d),(void)(e),(void)(x),(void)(y),(void)(z) |
#define VA_NUM_ARGS | ( | ... | ) | VA_NUM_ARGS_IMPL(__VA_ARGS__, 8, 7, 6, 5, 4, 3, 2, 1) |
#define VA_NUM_ARGS_IMPL | ( | _1, | |
_2, | |||
_3, | |||
_4, | |||
_5, | |||
_6, | |||
_7, | |||
_8, | |||
N, | |||
... | |||
) | N |
|
inlinestatic |
References IEEE754_TO_IEEE11073_FLOAT.