|
Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
|
Go to the documentation of this file.
15 #include <libfpga/fpgaregister.h>
21 tcPwm(uint32_t anAddress,
double anRefClkMhz, std::string acUioName = std::string());
26 void setRefClkMhz(
double anRefClkMhz) { mnRefClkMhz = anRefClkMhz; }
52 uint16_t readClockDivider();
53 void setClockDivider(uint16_t anClkDivider);
55 uint32_t readPulseActiveTime();
56 void setPulseActiveTime(uint32_t anPulseTime);
58 uint32_t readPulsePeriod();
59 void setPulsePeriod(uint32_t anPulsePeriod);
61 tcFPGARegister<uint32_t> mhRegister;
void setPeriodTime(std::chrono::microseconds anPeriod)
tcPwm::setPeriodTime Configures prescalar and pulse period registers
Definition: Pwm.cpp:123
void enableInterrupts(bool abDeAssert, bool abEnable)
tcPwm::enableInterrupts Enables the PWM core to generate interrupts
Definition: Pwm.cpp:305
bool initialized()
Definition: Pwm.cpp:50
int waitForInterrupt(std::chrono::microseconds anTimeout)
tcPwm::waitForInterrupt Wait for the PWM to trigger and interrupt condition
Definition: Pwm.cpp:353
void setPeriodFreq(uint32_t anFreqHz)
tcPwm::setPeriodFreq Configures prescalar and pulse period registers
Definition: Pwm.cpp:134
void enableCore(bool abEnable)
tcPwm::enableCore Enable/Disable the pulse output When disabled the output will be in the inactive st...
Definition: Pwm.cpp:87
tcPwm(uint32_t anAddress, double anRefClkMhz, std::string acUioName=std::string())
tcPwm::tcPwm Class Constructor.
Definition: Pwm.cpp:35
void setDutyTime(std::chrono::microseconds anDuty)
tcPwm::setDutyTime Configures pulse active time register
Definition: Pwm.cpp:176
bool readInvertPulse()
tcPwm::readInvertPulse True is pulse active low and inactive high. False is pulse active high and ina...
Definition: Pwm.cpp:100
void setRefClkMhz(double anRefClkMhz)
Definition: Pwm.h:26
void clearInterruptStatus(void)
tcPwm::clearInterruptStatus Cleas the interrupt pending status.
Definition: Pwm.cpp:336
void setDutyClks(uint32_t anDutyClks)
tcPwm::setDutyClks Configures pulse active time register
Definition: Pwm.cpp:204
void dumpRegisters()
tcPwm::dumpRegisters Print various registers to console
Definition: Pwm.cpp:288
uint32_t readVersion()
tcPwm::readVersion of the fpga core
Definition: Pwm.cpp:68
void setPeriodClks(uint64_t anPeriodClks)
tcPwm::setPeriodClks Configures prescalar and pulse period registers
Definition: Pwm.cpp:146
virtual ~tcPwm()
Definition: Pwm.cpp:46
void setDutyPercent(double anDutyPercent)
tcPwm::setDutyPercent Configures pulse active time register
Definition: Pwm.cpp:188
void setInvertPulse(bool abPulseLow)
tcPwm::setInvertPulse True is pulse active low and inactive high. False is pulse active high and inac...
Definition: Pwm.cpp:112
bool interruptPending(void)
tcPwm::interruptPending
Definition: Pwm.cpp:328
bool readCoreEnable()
tcPwm::readCoreEnable
Definition: Pwm.cpp:77