SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
Toggle main menu visibility
Loading...
Searching...
No Matches
chrono.hpp
Go to the documentation of this file.
1
/*
2
* SatNOGS-COMMS control library
3
*
4
* Copyright (C) 2022-2024, Libre Space Foundation <http://libre.space>
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*
19
* SPDX-License-Identifier: GNU General Public License v3.0 or later
20
*/
21
22
#pragma once
23
24
#include <cstddef>
25
#include <cstdint>
26
27
namespace
satnogs::comms::lib::bsp
28
{
40
class
chrono
41
{
42
public
:
46
chrono
() {}
47
54
virtual
void
55
delay_us
(
size_t
us) = 0;
56
62
virtual
void
63
busy_wait_us
(
size_t
us) = 0;
64
70
virtual
int64_t
71
time_ms
() = 0;
72
};
73
}
// namespace satnogs::comms::lib::bsp
satnogs::comms::lib::bsp::chrono::busy_wait_us
virtual void busy_wait_us(size_t us)=0
Delay execution using busy wait.
satnogs::comms::lib::bsp::chrono::chrono
chrono()
Construct a new chrono(time-related) object.
Definition
chrono.hpp:46
satnogs::comms::lib::bsp::chrono::time_ms
virtual int64_t time_ms()=0
Retrieves the current time in milliseconds.
satnogs::comms::lib::bsp::chrono::delay_us
virtual void delay_us(size_t us)=0
Delays the execution of the active task for at least us microseconds.
satnogs::comms::lib::bsp
Definition
adc.hpp:26
libsatnogs-comms
include
satnogs-comms-lib
bsp
chrono.hpp
Generated by
1.17.0