hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 ****************************************************************************************
 *
 * @file rwnx_strs.h
 *
 * @brief Miscellaneous debug strings
 *
 * Copyright (C) RivieraWaves 2014-2019
 *
 ****************************************************************************************
 */
 
#ifndef _RWNX_STRS_H_
#define _RWNX_STRS_H_
 
#ifdef CONFIG_RWNX_FHOST
 
#define RWNX_ID2STR(tag) "Cmd"
 
#else
#include "lmac_msg.h"
 
#define RWNX_ID2STR(tag) (((MSG_T(tag) < ARRAY_SIZE(rwnx_id2str)) &&        \
                          (rwnx_id2str[MSG_T(tag)]) &&          \
                          ((rwnx_id2str[MSG_T(tag)])[MSG_I(tag)])) ?   \
                         (rwnx_id2str[MSG_T(tag)])[MSG_I(tag)] : "unknown")
 
extern const char *const *rwnx_id2str[TASK_LAST_EMB + 1];
#endif /* CONFIG_RWNX_FHOST */
 
#endif /* _RWNX_STRS_H_ */