Commit b4179d59 authored by Federico Vaga's avatar Federico Vaga

lib: add function to clear reference

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 3fe74289
......@@ -97,4 +97,17 @@ extern uint64_t fmctdc_ts_approx_ns(struct fmctdc_time *a);
extern uint64_t fmctdc_ts_ps(struct fmctdc_time *a);
extern void fmctdc_ts_sub(struct fmctdc_time *a, struct fmctdc_time *b);
extern void ft_ts_add(struct fmctdc_time *a, struct fmctdc_time *b);
/**
* It removes the time reference from a target channel
* @param[in] userb TDC board instance token
* @param[in] ch_target target channel [1, 5]
* @return 0 on success, otherwise -1 and errno is set appropriately
*/
static inline int fmctdc_reference_clear(struct fmctdc_board *userb,
int ch_target)
{
return fmctdc_reference_set(userb, ch_target, 0);
}
#endif /* __FMCTDC_LIB_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment