forked from sony/nmos-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock_name.h
More file actions
25 lines (21 loc) · 711 Bytes
/
clock_name.h
File metadata and controls
25 lines (21 loc) · 711 Bytes
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
#ifndef NMOS_CLOCK_NAME_H
#define NMOS_CLOCK_NAME_H
#include "cpprest/basic_utils.h"
#include "nmos/string_enum.h"
namespace nmos
{
// Clock name
// See https://specs.amwa.tv/is-04/releases/v1.2.0/APIs/schemas/with-refs/clock_internal.html
// and https://specs.amwa.tv/is-04/releases/v1.2.0/APIs/schemas/with-refs/clock_ptp.html
// and https://specs.amwa.tv/is-04/releases/v1.2.0/APIs/schemas/with-refs/source_core.html
DEFINE_STRING_ENUM(clock_name)
namespace clock_names
{
const clock_name clk0{ U("clk0") };
inline const clock_name clk(unsigned int n)
{
return clock_name{ U("clk") + utility::ostringstreamed(n) };
}
}
}
#endif