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__ ) |
Referenced by csc_prf_disconnect_event_handler(), and csc_prf_init().
#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 bat_update_char_value(), ble_bat_process(), ble_bat_profile_init(), ble_bat_start_advertise(), ble_conn_param_update(), ble_connected_state_handler(), ble_device_init(), ble_disconnected_state_handler(), ble_encryption_status_change_handler(), ble_heart_rate_process(), ble_heart_rate_profile_init(), ble_heart_rate_start_advertise(), 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(), csc_prf_connected_state_handler(), csc_prf_dev_adv(), csc_prf_disconnect_event_handler(), csc_prf_discovery_complete_handler(), csc_prf_write_notification_handler(), csc_serv_send_data(), gap_dev_scan(), lls_alert_read_response(), lls_set_alert_value(), pxp_disconnect_event_handler(), 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(), pxp_reporter_adv(), pxp_reporter_connected_state_handler(), pxp_service_define(), trans_update_ctrl_char_value(), trans_update_tx_char_value(), and txps_power_read_response().
#define DBG_LOG_CONT printf |
#define DBG_LOG_DEV ALL_UNUSED |
Referenced by bat_update_char_value(), ble_dummy_handler(), ble_event_manager(), ble_pair_key_request_handler(), ble_scan_info_handler(), ble_send_slave_sec_request(), ble_slave_security_handler(), BLE_UNUSED2_VAR(), csc_prf_discovery_complete_handler(), heart_rate_update_char_value(), pxp_monitor_discovery_complete_handler(), and pxp_monitor_service_discover().
#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.