You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
#ifndef __SI4432_H__
|
|
|
|
#define __SI4432_H__
|
|
|
|
#define byte uint8_t
|
|
extern volatile int SI4432_Sel; // currently selected SI4432
|
|
void SI4432_Write_Byte(byte ADR, byte DATA );
|
|
byte SI4432_Read_Byte( byte ADR );
|
|
|
|
void SI4432_Init(void);
|
|
float SI4432_RSSI(uint32_t i, int s);
|
|
#ifdef __SIMULATION__
|
|
float Simulated_SI4432_RSSI(uint32_t i, int s);
|
|
#endif
|
|
void SI4432_Set_Frequency ( long Freq );
|
|
void SI4432_Transmit(int d);
|
|
void SI4432_Receive(void);
|
|
float SI4432_SET_RBW(float WISH);
|
|
void PE4302_Write_Byte(unsigned char DATA );
|
|
void PE4302_init(void);
|
|
|
|
#ifdef __ULTRA_SA__
|
|
extern int ADF4351_LE[];
|
|
extern int debug;
|
|
void ADF4351_Setup(void);
|
|
|
|
|
|
void ADF4351_WriteRegister32(int channel, const uint32_t value);
|
|
void ADF4351_set_frequency(int channel, uint32_t freq, int drive_strength);
|
|
void ADF4351_prep_frequency(int channel, uint32_t freq, int drive_strength);
|
|
//int ADF4351_set_frequency_with_offset(uint32_t freq, int offset, uint8_t drive_strength);
|
|
void ADF4351_Set(int channel);
|
|
void ADF4351_enable_output(void);
|
|
void ADF4351_disable_output(void);
|
|
void ADF4351_spur_mode(int S);
|
|
void ADF4351_R_counter(int R);
|
|
void ADF4351_channel_spacing(int spacing);
|
|
void ADF4351_CP(int p);
|
|
void ADF4351_level(int p);
|
|
int ADF4351_locked(void);
|
|
#endif
|
|
|
|
|
|
#endif //__SI4432_H__
|