kopia lustrzana https://github.com/mikaelnousiainen/RS41ng
32 wiersze
978 B
C
32 wiersze
978 B
C
#ifndef __SI4063_H
|
|
#define __SI4063_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef enum _si4063_modulation_type {
|
|
SI4063_MODULATION_TYPE_CW = 0,
|
|
SI4063_MODULATION_TYPE_OOK,
|
|
SI4063_MODULATION_TYPE_FSK,
|
|
SI4063_MODULATION_TYPE_FIFO_FSK,
|
|
} si4063_modulation_type;
|
|
|
|
void si4063_enable_tx();
|
|
void si4063_inhibit_tx();
|
|
void si4063_disable_tx();
|
|
uint16_t si4063_start_tx(uint8_t *data, int len);
|
|
uint16_t si4063_refill_buffer(uint8_t *data, int len);
|
|
int si4063_wait_for_tx_complete(int timeout_ms);
|
|
bool si4063_fifo_underflow();
|
|
void si4063_set_tx_frequency(uint32_t frequency_hz);
|
|
void si4063_set_data_rate(const uint32_t rate_bps);
|
|
void si4063_set_tx_power(uint8_t power);
|
|
void si4063_set_frequency_offset(uint16_t offset);
|
|
void si4063_set_frequency_deviation(uint32_t deviation);
|
|
void si4063_set_modulation_type(si4063_modulation_type type);
|
|
int32_t si4063_read_temperature_celsius_100();
|
|
void si4063_set_direct_mode_pin(bool high);
|
|
int si4063_init();
|
|
|
|
#endif
|