epics-modules / mrfioc2

EPICS driver for Micro Research Finland event timing system devices
http://epics-modules.github.io/mrfioc2/
Other
8 stars 30 forks source link

add prescaler polarity functions #40

Closed krmpotic closed 1 year ago

krmpotic commented 3 years ago

By default the prescalers are aligned by the falling edge. This can be changed by toggling the prescaler polarity bit (bit 15 in Control Register).

Where would be a good place to put the corresponding records?

krmpotic commented 3 years ago

The polarity bit is available on mTCA, VME and PCIe starting from 0205 firmware.

krmpotic commented 3 years ago

This is tested and works. Let me know if I should change something.

krmpotic commented 3 years ago

There is actually no duplication taking place. I'm using the $(P) "base record name prefix" macro not the $(SN) "scaler record name" one.