int rp_LaAcqDefaultSettings(rp_handle_uio_t *handle) { rp_LaAcqGlobalTrigSet(handle,RP_TRG_ALL_MASK); rp_LaAcqSetConfig(handle, 0); //rp_LaAcqSetConfig(handle, RP_LA_ACQ_CFG_AUTO_MASK); rp_la_cfg_regset_t cfg; cfg.pre=0; cfg.pst=LA_ACQ_BUF_SIZE; rp_LaAcqSetCntConfig(handle,cfg); rp_la_trg_regset_t trg; trg.cmp_msk=0; trg.cmp_val=0; trg.edg_pos=0; trg.edg_neg=0; rp_LaAcqSetTrigSettings(handle,trg); rp_la_decimation_regset_t dec; dec.dec=0; rp_LaAcqSetDecimation(handle,dec); rp_LaAcqDisableRLE(handle); return RP_OK; }
RP_STATUS rp_EnableDigitalPortDataRLE(bool enable) { if(enable){ rp_LaAcqEnableRLE(&la_acq_handle); } else{ rp_LaAcqDisableRLE(&la_acq_handle); } return RP_API_OK; }