]>
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 * Initializes the FPGA for reader-mode (field on), and acquires the samples. 
  13 * @return number of bits sampled 
  15 uint32_t SampleLF(bool silent
, int sample_size
); 
  18 * Initializes the FPGA for snoop-mode (field off), and acquires the samples. 
  19 * @return number of bits sampled 
  23 // adds sample size to default options 
  24 uint32_t DoPartialAcquisition(int trigger_threshold
, bool silent
, int sample_size
, int cancel_after
); 
  27  * @brief Does sample acquisition, ignoring the config values set in the sample_config. 
  28  * This method is typically used by tag-specific readers who just wants to read the samples 
  30  * @param trigger_threshold 
  32  * @return number of bits sampled 
  34 uint32_t DoAcquisition_default(int trigger_threshold
, bool silent
); 
  36  * @brief Does sample acquisition, using the config values set in the sample_config. 
  37  * @param trigger_threshold 
  39  * @return number of bits sampled 
  42 uint32_t DoAcquisition_config(bool silent
, int sample_size
); 
  45 * Setup the FPGA to listen for samples. This method downloads the FPGA bitstream 
  46 * if not already loaded, sets divisor and starts up the antenna. 
  47 * @param divisor : 1, 88> 255 or negative ==> 134.8 KHz 
  51 void LFSetupFPGAForADC(int divisor
, bool lf_field
); 
  54  * Called from the USB-handler to set the sampling configuration 
  55  * The sampling config is used for std reading and snooping. 
  57  * Other functions may read samples and ignore the sampling config, 
  58  * such as functions to read the UID from a prox tag or similar. 
  60  * Values set to '0' implies no change (except for averaging) 
  61  * @brief setSamplingConfig 
  64 void setSamplingConfig(sample_config 
*sc
); 
  66 sample_config 
* getSamplingConfig(); 
  71 #endif // LFSAMPLING_H