]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/lfsampling.h
5 * acquisition of T55x7 LF signal. Similart to other LF, but adjusted with @marshmellows thresholds
6 * the data is collected in BigBuf.
8 void doT55x7Acquisition(void);
11 * Initializes the FPGA for reader-mode (field on), and acquires the samples.
12 * @return number of bits sampled
14 uint32_t SampleLF(bool silent
);
17 * Initializes the FPGA for snoop-mode (field off), and acquires the samples.
18 * @return number of bits sampled
24 * @brief Does sample acquisition, ignoring the config values set in the sample_config.
25 * This method is typically used by tag-specific readers who just wants to read the samples
27 * @param trigger_threshold
29 * @return number of bits sampled
31 uint32_t DoAcquisition_default(int trigger_threshold
, bool silent
);
33 * @brief Does sample acquisition, using the config values set in the sample_config.
34 * @param trigger_threshold
36 * @return number of bits sampled
39 uint32_t DoAcquisition_config( bool silent
);
42 * Setup the FPGA to listen for samples. This method downloads the FPGA bitstream
43 * if not already loaded, sets divisor and starts up the antenna.
44 * @param divisor : 1, 88> 255 or negative ==> 134.8 KHz
48 void LFSetupFPGAForADC(int divisor
, bool lf_field
);
52 * Called from the USB-handler to set the sampling configuration
53 * The sampling config is used for std reading and snooping.
55 * Other functions may read samples and ignore the sampling config,
56 * such as functions to read the UID from a prox tag or similar.
58 * Values set to '0' implies no change (except for averaging)
59 * @brief setSamplingConfig
62 void setSamplingConfig(sample_config
*sc
);
64 sample_config
* getSamplingConfig();
69 #endif // LFSAMPLING_H