kopia lustrzana https://github.com/mobilinkd/tnc3-firmware
31 wiersze
359 B
C++
31 wiersze
359 B
C++
// Copyright 2017 Rob Riggs <rob@mobilinkd.com>
|
|
// All rights reserved.
|
|
|
|
#include "DCD.h"
|
|
#include "LEDIndicator.h"
|
|
|
|
bool& dcd_status()
|
|
{
|
|
static bool dcd_status{false};
|
|
return dcd_status;
|
|
}
|
|
void dcd_on(void)
|
|
{
|
|
rx_on();
|
|
dcd_status() = true;
|
|
}
|
|
|
|
void dcd_off(void)
|
|
{
|
|
rx_off();
|
|
dcd_status() = false;
|
|
}
|
|
|
|
int dcd(void)
|
|
{
|
|
return dcd_status();
|
|
}
|
|
|
|
|
|
|