]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/lfsampling.h
5 * acquisition of Cotag LF signal. Similar to other LF, since the Cotag has such long datarate RF/384
6 * and is Manchester?, we directly gather the manchester data into bigbuff
8 void doCotagAcquisition(size_t sample_size
);
9 uint32_t doCotagAcquisitionManchester(void);
12 * acquisition of T55x7 LF signal. Similart to other LF, but adjusted with @marshmellows thresholds
13 * the data is collected in BigBuf.
15 void doT55x7Acquisition(size_t sample_size
);
18 * Initializes the FPGA for reader-mode (field on), and acquires the samples.
19 * @return number of bits sampled
21 uint32_t SampleLF(bool silent
);
24 * Initializes the FPGA for snoop-mode (field off), and acquires the samples.
25 * @return number of bits sampled
31 * @brief Does sample acquisition, ignoring the config values set in the sample_config.
32 * This method is typically used by tag-specific readers who just wants to read the samples
34 * @param trigger_threshold
36 * @return number of bits sampled
38 uint32_t DoAcquisition_default(int trigger_threshold
, bool silent
);
40 * @brief Does sample acquisition, using the config values set in the sample_config.
41 * @param trigger_threshold
43 * @return number of bits sampled
46 uint32_t DoAcquisition_config( bool silent
);
49 * Setup the FPGA to listen for samples. This method downloads the FPGA bitstream
50 * if not already loaded, sets divisor and starts up the antenna.
51 * @param divisor : 1, 88> 255 or negative ==> 134.8 KHz
55 void LFSetupFPGAForADC(int divisor
, bool lf_field
);
58 * Called from the USB-handler to set the sampling configuration
59 * The sampling config is used for std reading and snooping.
61 * Other functions may read samples and ignore the sampling config,
62 * such as functions to read the UID from a prox tag or similar.
64 * Values set to '0' implies no change (except for averaging)
65 * @brief setSamplingConfig
68 void setSamplingConfig(sample_config
*sc
);
70 sample_config
* getSamplingConfig();
75 #endif // LFSAMPLING_H