2023-12-27 16:26:23 +03:00
|
|
|
|
/*
|
|
|
|
|
|
* biss.h
|
|
|
|
|
|
*
|
|
|
|
|
|
* Created on: 26 <EFBFBD><EFBFBD><EFBFBD>. 2023 <EFBFBD>.
|
|
|
|
|
|
* Author: seklyuts
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SRC_BISS_H_
|
|
|
|
|
|
#define SRC_BISS_H_
|
|
|
|
|
|
|
2024-03-11 09:45:50 +03:00
|
|
|
|
#define BISS_C_BITS 4 //<2F><><EFBFBD>-<2D><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 16-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2023-12-27 16:26:23 +03:00
|
|
|
|
|
2024-03-11 09:45:50 +03:00
|
|
|
|
#define BISS_CLK_POL 1
|
|
|
|
|
|
#define BISS_CLK_PHASE 1
|
2023-12-27 16:26:23 +03:00
|
|
|
|
|
2024-03-11 09:45:50 +03:00
|
|
|
|
#define BISS_BR 1500000
|
|
|
|
|
|
|
|
|
|
|
|
void BissInit(void);
|
|
|
|
|
|
void BissGpioInit(void);
|
|
|
|
|
|
|
|
|
|
|
|
void BissClkgenSetup(unsigned int bits_num_m,
|
|
|
|
|
|
unsigned int bits_num_s,
|
|
|
|
|
|
float freq_hz,
|
|
|
|
|
|
unsigned int phase_us);
|
|
|
|
|
|
|
|
|
|
|
|
void BissClkgenRun(void);
|
|
|
|
|
|
|
|
|
|
|
|
void BissStartSet(void);
|
|
|
|
|
|
void BissCalc(uint64_t BissData);
|
2023-12-27 16:26:23 +03:00
|
|
|
|
|
|
|
|
|
|
#endif /* SRC_BISS_H_ */
|
|
|
|
|
|
|