kopia lustrzana https://github.com/DL7AD/pecanpico9
Reimplemented 2GFSK modulation
rodzic
d9309f3266
commit
08e798ce5e
|
@ -491,7 +491,7 @@ void start_user_modules(void)
|
|||
config[6].ssdv_conf.ram_size = sizeof(ssdv_buffer); // Buffer size
|
||||
config[6].ssdv_conf.res = RES_XGA; // Resolution XGA
|
||||
config[6].ssdv_conf.quality = 4; // Image quality
|
||||
start_image_thread(&config[6]);
|
||||
//start_image_thread(&config[6]);
|
||||
|
||||
|
||||
/* ----------------------------------------------------- LOG TRANSMISSION ---------------------------------------------------- */
|
||||
|
|
|
@ -308,22 +308,13 @@ void setModem2GFSK(gfsk_conf_t* conf) {
|
|||
uint8_t setup_data_rate[] = {0x11, 0x20, 0x03, 0x03, (uint8_t)(conf->speed >> 16), (uint8_t)(conf->speed >> 8), (uint8_t)conf->speed};
|
||||
Si4464_write(setup_data_rate, 7);
|
||||
|
||||
// Use 2GFSK from async GPIO1
|
||||
uint8_t use_2gfsk[] = {0x11, 0x20, 0x01, 0x00, 0x22};
|
||||
// Use 2GFSK from FIFO (PH)
|
||||
uint8_t use_2gfsk[] = {0x11, 0x20, 0x01, 0x00, 0x23};
|
||||
Si4464_write(use_2gfsk, 5);
|
||||
|
||||
// transmit LSB first
|
||||
uint8_t use_lsb_first[] = {0x11, 0x12, 0x01, 0x06, 0x01};
|
||||
Si4464_write(use_lsb_first, 5);
|
||||
|
||||
|
||||
// Set AFSK filter
|
||||
/*uint8_t coeff[] = {0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67, 0x67};
|
||||
uint8_t i;
|
||||
for(i=0; i<sizeof(coeff); i++) {
|
||||
uint8_t msg[] = {0x11, 0x20, 0x01, 0x17-i, coeff[i]};
|
||||
Si4464_write(msg, 5);
|
||||
}*/
|
||||
}
|
||||
|
||||
void setPowerLevel(int8_t level) {
|
||||
|
|
Ładowanie…
Reference in New Issue