How can i use the pixhawk v5 FMU_CAP* in the firmware?

I want to measure the motor rpm through cdi, i found the pixhawk v5 have the fmu_cap* interface, but there is no driver for it, how can i use it? Anyone has an idea?:grinning: