nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
fn_key_id.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _FN_KEY_ID_H_
8#define _FN_KEY_ID_H_
9
10#include <zephyr/sys/util.h>
11#include <caf/key_id.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#define _FN_POS (_COL_POS + _COL_SIZE)
18#define _FN_BIT BIT(_FN_POS)
19
20#define FN_KEY_ID(_col, _row) (KEY_ID(_col, _row) | _FN_BIT)
21#define IS_FN_KEY(_keyid) ((_FN_BIT & _keyid) != 0)
22
23#ifdef __cplusplus
24}
25#endif
26
27#endif /* _FN_KEY_ID_H_ */