<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Elektroonikafoorum.com - Programmeerimine]]></title>
		<link>https://elektroonikafoorum.com/</link>
		<description><![CDATA[Elektroonikafoorum.com - https://elektroonikafoorum.com]]></description>
		<pubDate>Fri, 16 Oct 2026 23:12:42 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[aESP32, baidist bithaaval pinnile välise taktiga]]></title>
			<link>https://elektroonikafoorum.com/thread-819.html</link>
			<pubDate>Tue, 12 Jan 2021 19:52:18 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=1337">pukspriit</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-819.html</guid>
			<description><![CDATA[Arduino (ESP32) ,C++:  Pole just algaja. Probleem: kuidas kirjutada 1-baidise puhvri sisu bit haaval io pinnile välise taktimpulsiga (ca. 15 kHz? Nagu SPI.<br />
shiftOut() ei kõlba, see annab ise clocki välja, mul on vaja iga välise impulsi ajal ühte bitti puhvrist pinnile saata. Kuugel ei leia midagi sihukest. Oleks võimalik bit maski kasutada, aga kuidas sinna väline takt sobitada, ei tea. Olen proovinud attachinterruptiga ( takt teeb katkestuse), aga ei tööta hästi.]]></description>
			<content:encoded><![CDATA[Arduino (ESP32) ,C++:  Pole just algaja. Probleem: kuidas kirjutada 1-baidise puhvri sisu bit haaval io pinnile välise taktimpulsiga (ca. 15 kHz? Nagu SPI.<br />
shiftOut() ei kõlba, see annab ise clocki välja, mul on vaja iga välise impulsi ajal ühte bitti puhvrist pinnile saata. Kuugel ei leia midagi sihukest. Oleks võimalik bit maski kasutada, aga kuidas sinna väline takt sobitada, ei tea. Olen proovinud attachinterruptiga ( takt teeb katkestuse), aga ei tööta hästi.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Micronas cdvn 2121 m051]]></title>
			<link>https://elektroonikafoorum.com/thread-795.html</link>
			<pubDate>Sat, 06 Jun 2020 18:57:40 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=1274">Martin</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-795.html</guid>
			<description><![CDATA[Tere<br />
<br />
Mul on mure pealkirjas nimetatud kiibiga. Nimelt ei leia ma mitte kuskilt selle kiibi andmelehte, tegelikult ei leia üldse mitte mingisugust informatsiooni.<br />
Kas keegi oskaks mind suunata?<br />
<a href="https://www.upload.ee/image/11834910/20200602_104119.jpg" target="_blank" rel="noopener" class="mycode_url"><img src="https://www.upload.ee/thumb/11834910/20200602_104119.jpg" loading="lazy"  alt="[Pilt: 20200602_104119.jpg]" class="mycode_img" /></a><br />
<br />
Sama jutiga paneks ülejäänud mudru ka kirja.<br />
Tegemist on VDO näidiku plokiga opeli pealt.<br />
Mina usun, et see kiip kontrollib steppermootoreid, mis liigutavad kiiruse ja tahhomeetri seiereid. Kuna mul on soov modofitiseerida antud kellaplokki, siis tuleks ilmselt kiibi peal olev programm ümber kirjutada, et soovitud modifikatsioon saavutada.<br />
<br />
Sama kiipi kasutatakse bensukate/diislite peal ja ka 220 ja 260km/h spidomeetri plokkide puhul. Ilmselt kasutatakse ka konseptsiooni autol, mida on toodetud 2tk ning näit oli 280. Lisaks on saksamaal keegi, kes on ploki ümber teinud 300 peale, kuid kahjuks Inglise keelsetele kirjadele sealtpoolt vastust ei tule.<br />
<br />
Alternatiivne meetod oleks teha eraldi kontroller, mis hall sensorilt tulevate impulside loendamisel arvutaks kokku steppermootoritele saadetava signaali, aga selline asi on minu jaoks üleliia keeruline.]]></description>
			<content:encoded><![CDATA[Tere<br />
<br />
Mul on mure pealkirjas nimetatud kiibiga. Nimelt ei leia ma mitte kuskilt selle kiibi andmelehte, tegelikult ei leia üldse mitte mingisugust informatsiooni.<br />
Kas keegi oskaks mind suunata?<br />
<a href="https://www.upload.ee/image/11834910/20200602_104119.jpg" target="_blank" rel="noopener" class="mycode_url"><img src="https://www.upload.ee/thumb/11834910/20200602_104119.jpg" loading="lazy"  alt="[Pilt: 20200602_104119.jpg]" class="mycode_img" /></a><br />
<br />
Sama jutiga paneks ülejäänud mudru ka kirja.<br />
Tegemist on VDO näidiku plokiga opeli pealt.<br />
Mina usun, et see kiip kontrollib steppermootoreid, mis liigutavad kiiruse ja tahhomeetri seiereid. Kuna mul on soov modofitiseerida antud kellaplokki, siis tuleks ilmselt kiibi peal olev programm ümber kirjutada, et soovitud modifikatsioon saavutada.<br />
<br />
Sama kiipi kasutatakse bensukate/diislite peal ja ka 220 ja 260km/h spidomeetri plokkide puhul. Ilmselt kasutatakse ka konseptsiooni autol, mida on toodetud 2tk ning näit oli 280. Lisaks on saksamaal keegi, kes on ploki ümber teinud 300 peale, kuid kahjuks Inglise keelsetele kirjadele sealtpoolt vastust ei tule.<br />
<br />
Alternatiivne meetod oleks teha eraldi kontroller, mis hall sensorilt tulevate impulside loendamisel arvutaks kokku steppermootoritele saadetava signaali, aga selline asi on minu jaoks üleliia keeruline.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Micronas cdvn 2121 m051]]></title>
			<link>https://elektroonikafoorum.com/thread-794.html</link>
			<pubDate>Sat, 06 Jun 2020 18:56:21 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=1274">Martin</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-794.html</guid>
			<description><![CDATA[Tere<br />
<br />
Mul on mure pealkirjas nimetatud kiibiga. Nimelt ei leia ma mitte kuskilt selle kiibi andmelehte, tegelikult ei leia üldse mitte mingisugust informatsiooni.<br />
Kas keegi oskaks mind suunata?<br />
<br />
Sama jutiga paneks ülejäänud mudru ka kirja.<br />
Tegemist on VDO näidiku plokiga opeli pealt.<br />
Mina usun, et see kiip kontrollib steppermootoreid, mis liigutavad kiiruse ja tahhomeetri seiereid. Kuna mul on soov modofitiseerida antud kellaplokki, siis tuleks ilmselt kiibi peal olev programm ümber kirjutada, et soovitud modifikatsioon saavutada.<br />
<br />
Sama kiipi kasutatakse bensukate/diislite peal ja ka 220 ja 260km/h spidomeetri plokkide puhul. Ilmselt kasutatakse ka konseptsiooni autol, mida on toodetud 2tk ning näit oli 280. Lisaks on saksamaal keegi, kes on ploki ümber teinud 300 peale, kuid kahjuks Inglise keelsetele kirjadele sealtpoolt vastust ei tule.<br />
<br />
Alternatiivne meetod oleks teha eraldi kontroller, mis hall sensorilt tulevate impulside loendamisel arvutaks kokku steppermootoritele saadetava signaali, aga selline asi on minu jaoks üleliia keeruline.]]></description>
			<content:encoded><![CDATA[Tere<br />
<br />
Mul on mure pealkirjas nimetatud kiibiga. Nimelt ei leia ma mitte kuskilt selle kiibi andmelehte, tegelikult ei leia üldse mitte mingisugust informatsiooni.<br />
Kas keegi oskaks mind suunata?<br />
<br />
Sama jutiga paneks ülejäänud mudru ka kirja.<br />
Tegemist on VDO näidiku plokiga opeli pealt.<br />
Mina usun, et see kiip kontrollib steppermootoreid, mis liigutavad kiiruse ja tahhomeetri seiereid. Kuna mul on soov modofitiseerida antud kellaplokki, siis tuleks ilmselt kiibi peal olev programm ümber kirjutada, et soovitud modifikatsioon saavutada.<br />
<br />
Sama kiipi kasutatakse bensukate/diislite peal ja ka 220 ja 260km/h spidomeetri plokkide puhul. Ilmselt kasutatakse ka konseptsiooni autol, mida on toodetud 2tk ning näit oli 280. Lisaks on saksamaal keegi, kes on ploki ümber teinud 300 peale, kuid kahjuks Inglise keelsetele kirjadele sealtpoolt vastust ei tule.<br />
<br />
Alternatiivne meetod oleks teha eraldi kontroller, mis hall sensorilt tulevate impulside loendamisel arvutaks kokku steppermootoritele saadetava signaali, aga selline asi on minu jaoks üleliia keeruline.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Innovatiisved kommentaariumid ja bloat-orgiad]]></title>
			<link>https://elektroonikafoorum.com/thread-761.html</link>
			<pubDate>Tue, 19 Feb 2019 23:30:24 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=2">madis</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-761.html</guid>
			<description><![CDATA[Ahoi !<br />
<br />
Kes on süvitsi kursis webindusega ? Seletage ära selline fenomen.<br />
<br />
Võtad delfi kommentaarid lahti. Nak..nak.nak loading loading... TEKSTI LOADIB, paarsada baiti, ilge lääg, load more nupud ja muu ilgus. Sisuliselt loetamatu.<br />
Samal ajal taustal youtube mängib sahinal videot.<br />
<br />
Kas ma ei mõista uut-tüüpi kommentaariumite ülimaid voorusi või ongi osad veebiprogejad ajukahjustusega ?]]></description>
			<content:encoded><![CDATA[Ahoi !<br />
<br />
Kes on süvitsi kursis webindusega ? Seletage ära selline fenomen.<br />
<br />
Võtad delfi kommentaarid lahti. Nak..nak.nak loading loading... TEKSTI LOADIB, paarsada baiti, ilge lääg, load more nupud ja muu ilgus. Sisuliselt loetamatu.<br />
Samal ajal taustal youtube mängib sahinal videot.<br />
<br />
Kas ma ei mõista uut-tüüpi kommentaariumite ülimaid voorusi või ongi osad veebiprogejad ajukahjustusega ?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Termoanduri moblaäpp ja seonduv]]></title>
			<link>https://elektroonikafoorum.com/thread-742.html</link>
			<pubDate>Tue, 20 Feb 2018 09:24:44 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=1065">Jason</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-742.html</guid>
			<description><![CDATA[Pole küll 100% programmeerimisega seonduv aga kuna riistvaraline külg on suht jäik, siis otsustasin selle siia alateemasse postitada.<br />
<br />
Lühidalt siis vajan nõu ja abi sellise praktilise koolitöö jaoks:<br />
<br />
1) Termoandur edastab infot temperatuuri kohta Arduinole või Raspberrile<br />
2) Arvuti edastab info Push Notification Service abil äpile<br />
3) Äpp teavitab kasutajat eelnevalt seadistatud temperatuurini jõudmisest.<br />
<br />
Mõte selles, et teavitada teatava ühissauna kasutajaid kütmise faktist automaatselt. Sauna köetakse käsitsi, puudega ja mõnikord unustab kütja skypes teadet saata või toimub skypes teate edastamisel tugev viivitus. <br />
<br />
Kava kohaselt peaks esmane automaatteavitus saadetama siis kui temperatuur tõuseb üle piiri, milleni see loomulikul teel ei ulatuks. Kõnealustes oludes näiteks 30C. Eesmärk on teavitada kasutajaid võimalikult vara, et saun on kütte pandud ja võib hakata asju pakkima. See lävend peaks olema (serveris?) fikseeritud temperatuur. <br />
<br />
Server peaks jätkama temperatuurimuutuste edastamist X aja tagant (5 min? 10 min?) ja klient saab äpilt uue teavituse siis kui saavutatakse tema poolt individuaalselt seatud lävend, mis näitaks sauna valmisolekut. Näiteks leiab kasutaja, et tema alla 80 kraadi sauna minema ei hakka. Seepärast seab ta individuaalseks lävendiks äpis 80 kraadi (või 75, et jääks sõitmisvaru) ja tema äpp teavitabki teda teistkordselt siis kui see lävend on saavutatud, et saun on nüüd valmis.<br />
<br />
Vahenditest on olemas andur, server (Raspberri/Arduino), veebiserver (asutuse veebileht). <br />
<br />
Äpi tahaks soovitavalt kokku panna visuaalprogrammeerimisega, sest ma ise progemist ei oska. <br />
<br />
Ootan mõtteid, soovitusi, abi.<br />
<br />
Tänan.]]></description>
			<content:encoded><![CDATA[Pole küll 100% programmeerimisega seonduv aga kuna riistvaraline külg on suht jäik, siis otsustasin selle siia alateemasse postitada.<br />
<br />
Lühidalt siis vajan nõu ja abi sellise praktilise koolitöö jaoks:<br />
<br />
1) Termoandur edastab infot temperatuuri kohta Arduinole või Raspberrile<br />
2) Arvuti edastab info Push Notification Service abil äpile<br />
3) Äpp teavitab kasutajat eelnevalt seadistatud temperatuurini jõudmisest.<br />
<br />
Mõte selles, et teavitada teatava ühissauna kasutajaid kütmise faktist automaatselt. Sauna köetakse käsitsi, puudega ja mõnikord unustab kütja skypes teadet saata või toimub skypes teate edastamisel tugev viivitus. <br />
<br />
Kava kohaselt peaks esmane automaatteavitus saadetama siis kui temperatuur tõuseb üle piiri, milleni see loomulikul teel ei ulatuks. Kõnealustes oludes näiteks 30C. Eesmärk on teavitada kasutajaid võimalikult vara, et saun on kütte pandud ja võib hakata asju pakkima. See lävend peaks olema (serveris?) fikseeritud temperatuur. <br />
<br />
Server peaks jätkama temperatuurimuutuste edastamist X aja tagant (5 min? 10 min?) ja klient saab äpilt uue teavituse siis kui saavutatakse tema poolt individuaalselt seatud lävend, mis näitaks sauna valmisolekut. Näiteks leiab kasutaja, et tema alla 80 kraadi sauna minema ei hakka. Seepärast seab ta individuaalseks lävendiks äpis 80 kraadi (või 75, et jääks sõitmisvaru) ja tema äpp teavitabki teda teistkordselt siis kui see lävend on saavutatud, et saun on nüüd valmis.<br />
<br />
Vahenditest on olemas andur, server (Raspberri/Arduino), veebiserver (asutuse veebileht). <br />
<br />
Äpi tahaks soovitavalt kokku panna visuaalprogrammeerimisega, sest ma ise progemist ei oska. <br />
<br />
Ootan mõtteid, soovitusi, abi.<br />
<br />
Tänan.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Bootloader ja Win10]]></title>
			<link>https://elektroonikafoorum.com/thread-729.html</link>
			<pubDate>Sat, 11 Nov 2017 10:51:48 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=245">A.R.</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-729.html</guid>
			<description><![CDATA[On selline boodiga töötav laadija PDFSUSB ver 1. Lubab PIC-kki hex faili viia.<br />
Õigem oleks öelda et oli. Töötas kenasti Win XP all aga Win 10 ei tunnista.<br />
Natuke tüütu on kahe arvuti vahel pendeldada. Aga 10 masin on jälle palju kiirem. <img src="https://elektroonikafoorum.com/images/smilies/sad.gif" alt="Sad" title="Sad" class="smilie smilie_8" /><br />
<br />
Siit küsimus.<br />
Kas keegi on kuskil kohanud võimalust kuidas saaks Win 10 all bootida PIC protsessorit?<br />
Huvitab eriti PIC18F4550.<br />
<br />
Äkki mõni picutaja teab lahendust?]]></description>
			<content:encoded><![CDATA[On selline boodiga töötav laadija PDFSUSB ver 1. Lubab PIC-kki hex faili viia.<br />
Õigem oleks öelda et oli. Töötas kenasti Win XP all aga Win 10 ei tunnista.<br />
Natuke tüütu on kahe arvuti vahel pendeldada. Aga 10 masin on jälle palju kiirem. <img src="https://elektroonikafoorum.com/images/smilies/sad.gif" alt="Sad" title="Sad" class="smilie smilie_8" /><br />
<br />
Siit küsimus.<br />
Kas keegi on kuskil kohanud võimalust kuidas saaks Win 10 all bootida PIC protsessorit?<br />
Huvitab eriti PIC18F4550.<br />
<br />
Äkki mõni picutaja teab lahendust?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[kontrolleri lisamine MPLAB IDE-le]]></title>
			<link>https://elektroonikafoorum.com/thread-689.html</link>
			<pubDate>Mon, 07 Nov 2016 11:46:19 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=23">felch</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-689.html</guid>
			<description><![CDATA[Kuidas see võiks käia? Uue prose (PIC16F1768) jaoks on olemas .inc ja .lkr failid. Kopeerisin nad vastavatesse kataloogidesse aga MPLAB ei võta neid ikkagi jutule.<br />
IDE-X tunneb küll nimetet proset aga..seda programmi ... ta pole eriti kasutatav <img src="https://elektroonikafoorum.com/images/smilies/sad.gif" alt="Sad" title="Sad" class="smilie smilie_8" />]]></description>
			<content:encoded><![CDATA[Kuidas see võiks käia? Uue prose (PIC16F1768) jaoks on olemas .inc ja .lkr failid. Kopeerisin nad vastavatesse kataloogidesse aga MPLAB ei võta neid ikkagi jutule.<br />
IDE-X tunneb küll nimetet proset aga..seda programmi ... ta pole eriti kasutatav <img src="https://elektroonikafoorum.com/images/smilies/sad.gif" alt="Sad" title="Sad" class="smilie smilie_8" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIC16F84A programmeerimine]]></title>
			<link>https://elektroonikafoorum.com/thread-669.html</link>
			<pubDate>Tue, 07 Jun 2016 14:16:36 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=859">erosin</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-669.html</guid>
			<description><![CDATA[Tere. Meil lõuna Eestis ei ole vist tugevaid programmeerijajd PIC16F84 osas. Ehk oskab keegi öelda midagi selle kivi kiiruse kohta. Nimelt impulsi lugeja peale 15...17 Hz lugemisel jätab vahele ja üle 30Hz puhul lakkab üldse lugemast. Kuni 10 Hz lugemisel töötab kivi hästi. (Skeem on ära toodud näit <a href="http://radio-hobby.org/modules/news/article.php?storyid=1084" target="_blank" rel="noopener" class="mycode_url">http://radio-hobby.org/modules/news/arti...oryid=1084</a> ). Kivi on programmeritud VKHK-s ( Väimela Kutsehariduse koolis). Ette tänades <a href="mailto:erosin@hot.ee" class="mycode_email">erosin@hot.ee</a>]]></description>
			<content:encoded><![CDATA[Tere. Meil lõuna Eestis ei ole vist tugevaid programmeerijajd PIC16F84 osas. Ehk oskab keegi öelda midagi selle kivi kiiruse kohta. Nimelt impulsi lugeja peale 15...17 Hz lugemisel jätab vahele ja üle 30Hz puhul lakkab üldse lugemast. Kuni 10 Hz lugemisel töötab kivi hästi. (Skeem on ära toodud näit <a href="http://radio-hobby.org/modules/news/article.php?storyid=1084" target="_blank" rel="noopener" class="mycode_url">http://radio-hobby.org/modules/news/arti...oryid=1084</a> ). Kivi on programmeritud VKHK-s ( Väimela Kutsehariduse koolis). Ette tänades <a href="mailto:erosin@hot.ee" class="mycode_email">erosin@hot.ee</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Si4463 raadiokivi]]></title>
			<link>https://elektroonikafoorum.com/thread-661.html</link>
			<pubDate>Sat, 02 Apr 2016 18:55:46 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=23">felch</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-661.html</guid>
			<description><![CDATA[Hei ! <br />
Kirjutan koodi SiLabs'i raadiokivile Si4463. Suhtluse sain tööle ja tootja WDS3 konfiguraatoriga leitud konfi suudan saata. Ka paketi saatmine justkui õnnestusks sest Packet_sent_int tekib. Paraku ei arva spektrianalüsaator et midagi saadeti ja teine Si4463 kivi vastuvõtjana ei kuule ka mitte midagi. <br />
Kahtlane on miski patch commands värk. WDS3 käseb need saata aga ma ei oska saata. Käsufail on olemas (2128 baiti). Kui saata raadiole startup käsk nagu WDS3 tahab ehk boodi patchitud kood, siis ei suuda raadio pakette saata. kui see bitt maha võtta, on ta maru kindel et sai saadetud. Kivid ise on pärit HC-12 serial port extenderi plaadilt kust jootsin originaalse prose maha ja vedasin juhtmed oma PICi külge. <br />
Ühes Si foorumis väideti et too patch ei tee sisuliselt midagi...<br />
Raadiokivi konf on lisatud. Kasutan long packet tx stsenaariumit.<br />
<br />
Ideed on otsas...mida paganat ma valesti teen ?<br />
<br />
<br />
<div class="codeblock"><div class="title">Kood:</div><div class="body" dir="ltr"><code>/*! @file radio_config.h
 * @brief This file contains the automatically generated
 * configurations.
 *
 * @n WDS GUI Version: 3.2.9.0
 * @n Device: Si4463 Rev.: C2                                 
 *
 * @b COPYRIGHT
 * @n Silicon Laboratories Confidential
 * @n Copyright 2015 Silicon Laboratories, Inc.
 * @n http://www.silabs.com
 */

#ifndef RADIO_CONFIG_H_
#define RADIO_CONFIG_H_

// USER DEFINED PARAMETERS
// Define your own parameters here

// INPUT DATA
/*
// Crys_freq(Hz): 30000000    Crys_tol(ppm): 20    IF_mode: 2    High_perf_Ch_Fil: 1    OSRtune: 0    Ch_Fil_Bw_AFC: 0    ANT_DIV: 0    PM_pattern: 0    
// MOD_type: 3    Rsymb(sps): 9600    Fdev(Hz): 10000    RXBW(Hz): 150000    Manchester: 0    AFC_en: 0    Rsymb_error: 0.0    Chip-Version: 2    
// RF Freq.(MHz): 437    API_TC: 29    fhst: 25000    inputBW: 0    BERT: 0    RAW_dout: 0    D_source: 0    Hi_pfm_div: 1    
// API_ARR_Det_en: 0    Fdev_error: 0    API_ETSI: 0    
// 
// # RX IF frequency is  -468750 Hz
// # WB filter 3 (BW =  61.74 kHz);  NB-filter 3 (BW = 61.74 kHz)
// 
// Modulation index: 2,083
*/


// CONFIGURATION PARAMETERS
#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ                     30000000L
#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER                    0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH               0xFF
#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP        0x03
#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET       0xF000
#define RADIO_CONFIGURATION_DATA_CUSTOM_LONG_PAYLOAD					   {0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5}

#include "..&#92;drivers&#92;radio&#92;Si446x&#92;si446x_patch.h"


// CONFIGURATION COMMANDS

/*
// Command:                  RF_POWER_UP
// Description:              Command to power-up the device and select the operational mode and functionality.
*/
#define RF_POWER_UP 0x02, 0x81, 0x00, 0x01, 0xC9, 0xC3, 0x80

/*
// Command:                  RF_GPIO_PIN_CFG
// Description:              Configures the GPIO pins.
*/
#define RF_GPIO_PIN_CFG 0x13, 0x04, 0x00, 0x60, 0x61, 0x00, 0x00, 0x00

/*
// Set properties:           RF_GLOBAL_XO_TUNE_2
// Number of properties:     2
// Group ID:                 0x00
// Start ID:                 0x00
// Default values:           0x40, 0x00, 
// Descriptions:
//   GLOBAL_XO_TUNE - Configure the internal capacitor frequency tuning bank for the crystal oscillator.
//   GLOBAL_CLK_CFG - Clock configuration options.
*/
#define RF_GLOBAL_XO_TUNE_2 0x11, 0x00, 0x02, 0x00, 0x52, 0x00

/*
// Set properties:           RF_GLOBAL_CONFIG_1
// Number of properties:     1
// Group ID:                 0x00
// Start ID:                 0x03
// Default values:           0x20, 
// Descriptions:
//   GLOBAL_CONFIG - Global configuration settings.
*/
#define RF_GLOBAL_CONFIG_1 0x11, 0x00, 0x01, 0x03, 0x20

/*
// Set properties:           RF_INT_CTL_ENABLE_2
// Number of properties:     2
// Group ID:                 0x01
// Start ID:                 0x00
// Default values:           0x04, 0x00, 
// Descriptions:
//   INT_CTL_ENABLE - This property provides for global enabling of the three interrupt groups (Chip, Modem and Packet Handler) in order to generate HW interrupts at the NIRQ pin.
//   INT_CTL_PH_ENABLE - Enable individual interrupt sources within the Packet Handler Interrupt Group to generate a HW interrupt on the NIRQ output pin.
*/
#define RF_INT_CTL_ENABLE_2 0x11, 0x01, 0x02, 0x00, 0x01, 0x33

/*
// Set properties:           RF_FRR_CTL_A_MODE_4
// Number of properties:     4
// Group ID:                 0x02
// Start ID:                 0x00
// Default values:           0x01, 0x02, 0x09, 0x00, 
// Descriptions:
//   FRR_CTL_A_MODE - Fast Response Register A Configuration.
//   FRR_CTL_B_MODE - Fast Response Register B Configuration.
//   FRR_CTL_C_MODE - Fast Response Register C Configuration.
//   FRR_CTL_D_MODE - Fast Response Register D Configuration.
*/
#define RF_FRR_CTL_A_MODE_4 0x11, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PREAMBLE_TX_LENGTH_9
// Number of properties:     9
// Group ID:                 0x10
// Start ID:                 0x00
// Default values:           0x08, 0x14, 0x00, 0x0F, 0x21, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PREAMBLE_TX_LENGTH - Configure length of TX Preamble.
//   PREAMBLE_CONFIG_STD_1 - Configuration of reception of a packet with a Standard Preamble pattern.
//   PREAMBLE_CONFIG_NSTD - Configuration of transmission/reception of a packet with a Non-Standard Preamble pattern.
//   PREAMBLE_CONFIG_STD_2 - Configuration of timeout periods during reception of a packet with Standard Preamble pattern.
//   PREAMBLE_CONFIG - General configuration bits for the Preamble field.
//   PREAMBLE_PATTERN_31_24 - Configuration of the bit values describing a Non-Standard Preamble pattern.
//   PREAMBLE_PATTERN_23_16 - Configuration of the bit values describing a Non-Standard Preamble pattern.
//   PREAMBLE_PATTERN_15_8 - Configuration of the bit values describing a Non-Standard Preamble pattern.
//   PREAMBLE_PATTERN_7_0 - Configuration of the bit values describing a Non-Standard Preamble pattern.
*/
#define RF_PREAMBLE_TX_LENGTH_9 0x11, 0x10, 0x09, 0x00, 0x08, 0x14, 0x00, 0x0F, 0x31, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_SYNC_CONFIG_6
// Number of properties:     6
// Group ID:                 0x11
// Start ID:                 0x00
// Default values:           0x01, 0x2D, 0xD4, 0x2D, 0xD4, 0x00, 
// Descriptions:
//   SYNC_CONFIG - Sync Word configuration bits.
//   SYNC_BITS_31_24 - Sync word.
//   SYNC_BITS_23_16 - Sync word.
//   SYNC_BITS_15_8 - Sync word.
//   SYNC_BITS_7_0 - Sync word.
//   SYNC_CONFIG2 - Sync Word configuration bits.
*/
#define RF_SYNC_CONFIG_6 0x11, 0x11, 0x06, 0x00, 0x01, 0x7C, 0xD6, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_CRC_CONFIG_7
// Number of properties:     7
// Group ID:                 0x12
// Start ID:                 0x00
// Default values:           0x00, 0x01, 0x08, 0xFF, 0xFF, 0x00, 0x00, 
// Descriptions:
//   PKT_CRC_CONFIG - Select a CRC polynomial and seed.
//   PKT_WHT_POLY_15_8 - 16-bit polynomial value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_POLY_7_0 - 16-bit polynomial value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_SEED_15_8 - 16-bit seed value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_SEED_7_0 - 16-bit seed value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_BIT_NUM - Selects which bit of the LFSR (used to generate the PN / data whitening sequence) is used as the output bit for data scrambling.
//   PKT_CONFIG1 - General configuration bits for transmission or reception of a packet.
*/
#define RF_PKT_CRC_CONFIG_7 0x11, 0x12, 0x07, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x20, 0x02

/*
// Set properties:           RF_PKT_LEN_12
// Number of properties:     12
// Group ID:                 0x12
// Start ID:                 0x08
// Default values:           0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_LEN - Configuration bits for reception of a variable length packet.
//   PKT_LEN_FIELD_SOURCE - Field number containing the received packet length byte(s).
//   PKT_LEN_ADJUST - Provides for adjustment/offset of the received packet length value (in order to accommodate a variety of methods of defining total packet length).
//   PKT_TX_THRESHOLD - TX FIFO almost empty threshold.
//   PKT_RX_THRESHOLD - RX FIFO Almost Full threshold.
//   PKT_FIELD_1_LENGTH_12_8 - Unsigned 13-bit Field 1 length value.
//   PKT_FIELD_1_LENGTH_7_0 - Unsigned 13-bit Field 1 length value.
//   PKT_FIELD_1_CONFIG - General data processing and packet configuration bits for Field 1.
//   PKT_FIELD_1_CRC_CONFIG - Configuration of CRC control bits across Field 1.
//   PKT_FIELD_2_LENGTH_12_8 - Unsigned 13-bit Field 2 length value.
//   PKT_FIELD_2_LENGTH_7_0 - Unsigned 13-bit Field 2 length value.
//   PKT_FIELD_2_CONFIG - General data processing and packet configuration bits for Field 2.
*/
#define RF_PKT_LEN_12 0x11, 0x12, 0x0C, 0x08, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0xFF, 0x04, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_FIELD_2_CRC_CONFIG_12
// Number of properties:     12
// Group ID:                 0x12
// Start ID:                 0x14
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_FIELD_2_CRC_CONFIG - Configuration of CRC control bits across Field 2.
//   PKT_FIELD_3_LENGTH_12_8 - Unsigned 13-bit Field 3 length value.
//   PKT_FIELD_3_LENGTH_7_0 - Unsigned 13-bit Field 3 length value.
//   PKT_FIELD_3_CONFIG - General data processing and packet configuration bits for Field 3.
//   PKT_FIELD_3_CRC_CONFIG - Configuration of CRC control bits across Field 3.
//   PKT_FIELD_4_LENGTH_12_8 - Unsigned 13-bit Field 4 length value.
//   PKT_FIELD_4_LENGTH_7_0 - Unsigned 13-bit Field 4 length value.
//   PKT_FIELD_4_CONFIG - General data processing and packet configuration bits for Field 4.
//   PKT_FIELD_4_CRC_CONFIG - Configuration of CRC control bits across Field 4.
//   PKT_FIELD_5_LENGTH_12_8 - Unsigned 13-bit Field 5 length value.
//   PKT_FIELD_5_LENGTH_7_0 - Unsigned 13-bit Field 5 length value.
//   PKT_FIELD_5_CONFIG - General data processing and packet configuration bits for Field 5.
*/
#define RF_PKT_FIELD_2_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_FIELD_5_CRC_CONFIG_12
// Number of properties:     12
// Group ID:                 0x12
// Start ID:                 0x20
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_FIELD_5_CRC_CONFIG - Configuration of CRC control bits across Field 5.
//   PKT_RX_FIELD_1_LENGTH_12_8 - Unsigned 13-bit RX Field 1 length value.
//   PKT_RX_FIELD_1_LENGTH_7_0 - Unsigned 13-bit RX Field 1 length value.
//   PKT_RX_FIELD_1_CONFIG - General data processing and packet configuration bits for RX Field 1.
//   PKT_RX_FIELD_1_CRC_CONFIG - Configuration of CRC control bits across RX Field 1.
//   PKT_RX_FIELD_2_LENGTH_12_8 - Unsigned 13-bit RX Field 2 length value.
//   PKT_RX_FIELD_2_LENGTH_7_0 - Unsigned 13-bit RX Field 2 length value.
//   PKT_RX_FIELD_2_CONFIG - General data processing and packet configuration bits for RX Field 2.
//   PKT_RX_FIELD_2_CRC_CONFIG - Configuration of CRC control bits across RX Field 2.
//   PKT_RX_FIELD_3_LENGTH_12_8 - Unsigned 13-bit RX Field 3 length value.
//   PKT_RX_FIELD_3_LENGTH_7_0 - Unsigned 13-bit RX Field 3 length value.
//   PKT_RX_FIELD_3_CONFIG - General data processing and packet configuration bits for RX Field 3.
*/
#define RF_PKT_FIELD_5_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_RX_FIELD_3_CRC_CONFIG_9
// Number of properties:     9
// Group ID:                 0x12
// Start ID:                 0x2C
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_RX_FIELD_3_CRC_CONFIG - Configuration of CRC control bits across RX Field 3.
//   PKT_RX_FIELD_4_LENGTH_12_8 - Unsigned 13-bit RX Field 4 length value.
//   PKT_RX_FIELD_4_LENGTH_7_0 - Unsigned 13-bit RX Field 4 length value.
//   PKT_RX_FIELD_4_CONFIG - General data processing and packet configuration bits for RX Field 4.
//   PKT_RX_FIELD_4_CRC_CONFIG - Configuration of CRC control bits across RX Field 4.
//   PKT_RX_FIELD_5_LENGTH_12_8 - Unsigned 13-bit RX Field 5 length value.
//   PKT_RX_FIELD_5_LENGTH_7_0 - Unsigned 13-bit RX Field 5 length value.
//   PKT_RX_FIELD_5_CONFIG - General data processing and packet configuration bits for RX Field 5.
//   PKT_RX_FIELD_5_CRC_CONFIG - Configuration of CRC control bits across RX Field 5.
*/
#define RF_PKT_RX_FIELD_3_CRC_CONFIG_9 0x11, 0x12, 0x09, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_CRC_SEED_31_24_4
// Number of properties:     4
// Group ID:                 0x12
// Start ID:                 0x36
// Default values:           0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_CRC_SEED_31_24 - 32-bit seed value for the 32-bit CRC engine
//   PKT_CRC_SEED_23_16 - 32-bit seed value for the 32-bit CRC engine
//   PKT_CRC_SEED_15_8 - 32-bit seed value for the 32-bit CRC engine
//   PKT_CRC_SEED_7_0 - 32-bit seed value for the 32-bit CRC engine
*/
#define RF_PKT_CRC_SEED_31_24_4 0x11, 0x12, 0x04, 0x36, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_MODEM_MOD_TYPE_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x00
// Default values:           0x02, 0x80, 0x07, 0x0F, 0x42, 0x40, 0x01, 0xC9, 0xC3, 0x80, 0x00, 0x06, 
// Descriptions:
//   MODEM_MOD_TYPE - Selects the type of modulation. In TX mode, additionally selects the source of the modulation.
//   MODEM_MAP_CONTROL - Controls polarity and mapping of transmit and receive bits.
//   MODEM_DSM_CTRL - Miscellaneous control bits for the Delta-Sigma Modulator (DSM) in the PLL Synthesizer.
//   MODEM_DATA_RATE_2 - Unsigned 24-bit value used to determine the TX data rate
//   MODEM_DATA_RATE_1 - Unsigned 24-bit value used to determine the TX data rate
//   MODEM_DATA_RATE_0 - Unsigned 24-bit value used to determine the TX data rate
//   MODEM_TX_NCO_MODE_3 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_TX_NCO_MODE_2 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_TX_NCO_MODE_1 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_TX_NCO_MODE_0 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_FREQ_DEV_2 - 17-bit unsigned TX frequency deviation word.
//   MODEM_FREQ_DEV_1 - 17-bit unsigned TX frequency deviation word.
*/
#define RF_MODEM_MOD_TYPE_12 0x11, 0x20, 0x0C, 0x00, 0x03, 0x00, 0x07, 0x05, 0xDC, 0x00, 0x05, 0xC9, 0xC3, 0x80, 0x00, 0x02

/*
// Set properties:           RF_MODEM_FREQ_DEV_0_1
// Number of properties:     1
// Group ID:                 0x20
// Start ID:                 0x0C
// Default values:           0xD3, 
// Descriptions:
//   MODEM_FREQ_DEV_0 - 17-bit unsigned TX frequency deviation word.
*/
#define RF_MODEM_FREQ_DEV_0_1 0x11, 0x20, 0x01, 0x0C, 0xBB

/*
// Set properties:           RF_MODEM_TX_RAMP_DELAY_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x18
// Default values:           0x01, 0x00, 0x08, 0x03, 0xC0, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x4B, 
// Descriptions:
//   MODEM_TX_RAMP_DELAY - TX ramp-down delay setting.
//   MODEM_MDM_CTRL - MDM control.
//   MODEM_IF_CONTROL - Selects Fixed-IF, Scaled-IF, or Zero-IF mode of RX Modem operation.
//   MODEM_IF_FREQ_2 - the IF frequency setting (an 18-bit signed number).
//   MODEM_IF_FREQ_1 - the IF frequency setting (an 18-bit signed number).
//   MODEM_IF_FREQ_0 - the IF frequency setting (an 18-bit signed number).
//   MODEM_DECIMATION_CFG1 - Specifies three decimator ratios for the Cascaded Integrator Comb (CIC) filter.
//   MODEM_DECIMATION_CFG0 - Specifies miscellaneous parameters and decimator ratios for the Cascaded Integrator Comb (CIC) filter.
//   MODEM_DECIMATION_CFG2 - Specifies miscellaneous decimator filter selections.
//   MODEM_IFPKD_THRESHOLDS - 
//   MODEM_BCR_OSR_1 - RX BCR/Slicer oversampling rate (12-bit unsigned number).
//   MODEM_BCR_OSR_0 - RX BCR/Slicer oversampling rate (12-bit unsigned number).
*/
#define RF_MODEM_TX_RAMP_DELAY_12 0x11, 0x20, 0x0C, 0x18, 0x01, 0x80, 0x08, 0x03, 0x80, 0x00, 0x20, 0x10, 0x00, 0xE8, 0x01, 0x04

/*
// Set properties:           RF_MODEM_BCR_NCO_OFFSET_2_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x24
// Default values:           0x06, 0xD3, 0xA0, 0x06, 0xD3, 0x02, 0xC0, 0x00, 0x00, 0x23, 0x83, 0x69, 
// Descriptions:
//   MODEM_BCR_NCO_OFFSET_2 - RX BCR NCO offset value (an unsigned 22-bit number).
//   MODEM_BCR_NCO_OFFSET_1 - RX BCR NCO offset value (an unsigned 22-bit number).
//   MODEM_BCR_NCO_OFFSET_0 - RX BCR NCO offset value (an unsigned 22-bit number).
//   MODEM_BCR_GAIN_1 - The unsigned 11-bit RX BCR loop gain value.
//   MODEM_BCR_GAIN_0 - The unsigned 11-bit RX BCR loop gain value.
//   MODEM_BCR_GEAR - RX BCR loop gear control.
//   MODEM_BCR_MISC1 - Miscellaneous control bits for the RX BCR loop.
//   MODEM_BCR_MISC0 - Miscellaneous RX BCR loop controls.
//   MODEM_AFC_GEAR - RX AFC loop gear control.
//   MODEM_AFC_WAIT - RX AFC loop wait time control.
//   MODEM_AFC_GAIN_1 - Sets the gain of the PLL-based AFC acquisition loop, and provides miscellaneous control bits for AFC functionality.
//   MODEM_AFC_GAIN_0 - Sets the gain of the PLL-based AFC acquisition loop, and provides miscellaneous control bits for AFC functionality.
*/
#define RF_MODEM_BCR_NCO_OFFSET_2_12 0x11, 0x20, 0x0C, 0x24, 0x01, 0xF7, 0x51, 0x00, 0xFC, 0x02, 0xC2, 0x00, 0x04, 0x32, 0x80, 0x1C

/*
// Set properties:           RF_MODEM_AFC_LIMITER_1_3
// Number of properties:     3
// Group ID:                 0x20
// Start ID:                 0x30
// Default values:           0x00, 0x40, 0xA0, 
// Descriptions:
//   MODEM_AFC_LIMITER_1 - Set the AFC limiter value.
//   MODEM_AFC_LIMITER_0 - Set the AFC limiter value.
//   MODEM_AFC_MISC - Specifies miscellaneous AFC control bits.
*/
#define RF_MODEM_AFC_LIMITER_1_3 0x11, 0x20, 0x03, 0x30, 0x0C, 0x6F, 0x80

/*
// Set properties:           RF_MODEM_AGC_CONTROL_1
// Number of properties:     1
// Group ID:                 0x20
// Start ID:                 0x35
// Default values:           0xE0, 
// Descriptions:
//   MODEM_AGC_CONTROL - Miscellaneous control bits for the Automatic Gain Control (AGC) function in the RX Chain.
*/
#define RF_MODEM_AGC_CONTROL_1 0x11, 0x20, 0x01, 0x35, 0xE0

/*
// Set properties:           RF_MODEM_AGC_WINDOW_SIZE_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x38
// Default values:           0x11, 0x10, 0x10, 0x0B, 0x1C, 0x40, 0x00, 0x00, 0x2B, 0x0C, 0xA4, 0x03, 
// Descriptions:
//   MODEM_AGC_WINDOW_SIZE - Specifies the size of the measurement and settling windows for the AGC algorithm.
//   MODEM_AGC_RFPD_DECAY - Sets the decay time of the RF peak detectors.
//   MODEM_AGC_IFPD_DECAY - Sets the decay time of the IF peak detectors.
//   MODEM_FSK4_GAIN1 - Specifies the gain factor of the secondary branch in 4(G)FSK ISI-suppression.
//   MODEM_FSK4_GAIN0 - Specifies the gain factor of the primary branch in 4(G)FSK ISI-suppression.
//   MODEM_FSK4_TH1 - 16 bit 4(G)FSK slicer threshold.
//   MODEM_FSK4_TH0 - 16 bit 4(G)FSK slicer threshold.
//   MODEM_FSK4_MAP - 4(G)FSK symbol mapping code.
//   MODEM_OOK_PDTC - Configures the attack and decay times of the OOK Peak Detector.
//   MODEM_OOK_BLOPK - Configures the slicing reference level of the OOK Peak Detector.
//   MODEM_OOK_CNT1 - OOK control.
//   MODEM_OOK_MISC - Selects the detector(s) used for demodulation of an OOK signal, or for demodulation of a (G)FSK signal when using the asynchronous demodulator.
*/
#define RF_MODEM_AGC_WINDOW_SIZE_12 0x11, 0x20, 0x0C, 0x38, 0x11, 0x39, 0x39, 0x80, 0x1A, 0x85, 0x55, 0x00, 0x2A, 0x0C, 0xA4, 0x22

/*
// Set properties:           RF_MODEM_RAW_CONTROL_5
// Number of properties:     5
// Group ID:                 0x20
// Start ID:                 0x45
// Default values:           0x02, 0x00, 0xA3, 0x02, 0x80, 
// Descriptions:
//   MODEM_RAW_CONTROL - Defines gain and enable controls for raw / nonstandard mode.
//   MODEM_RAW_EYE_1 - 11 bit eye-open detector threshold.
//   MODEM_RAW_EYE_0 - 11 bit eye-open detector threshold.
//   MODEM_ANT_DIV_MODE - Antenna diversity mode settings.
//   MODEM_ANT_DIV_CONTROL - Specifies controls for the Antenna Diversity algorithm.
*/
#define RF_MODEM_RAW_CONTROL_5 0x11, 0x20, 0x05, 0x45, 0x83, 0x00, 0xA6, 0x02, 0x00

/*
// Set properties:           RF_MODEM_RSSI_JUMP_THRESH_4
// Number of properties:     4
// Group ID:                 0x20
// Start ID:                 0x4B
// Default values:           0x0C, 0x01, 0x00, 0x40, 
// Descriptions:
//   MODEM_RSSI_JUMP_THRESH - Configures the RSSI Jump Detection threshold.
//   MODEM_RSSI_CONTROL - Control of the averaging modes and latching time for reporting RSSI value(s).
//   MODEM_RSSI_CONTROL2 - RSSI Jump Detection control.
//   MODEM_RSSI_COMP - RSSI compensation value.
*/
#define RF_MODEM_RSSI_JUMP_THRESH_4 0x11, 0x20, 0x04, 0x4B, 0x06, 0x09, 0x1C, 0x40

/*
// Set properties:           RF_MODEM_RAW_SEARCH2_2
// Number of properties:     2
// Group ID:                 0x20
// Start ID:                 0x50
// Default values:           0x00, 0x08, 
// Descriptions:
//   MODEM_RAW_SEARCH2 - Defines and controls the search period length for the Moving Average and Min-Max detectors.
//   MODEM_CLKGEN_BAND - Select PLL Synthesizer output divider ratio as a function of frequency band.
*/
#define RF_MODEM_RAW_SEARCH2_2 0x11, 0x20, 0x02, 0x50, 0x84, 0x0A

/*
// Set properties:           RF_MODEM_SPIKE_DET_2
// Number of properties:     2
// Group ID:                 0x20
// Start ID:                 0x54
// Default values:           0x00, 0x00, 
// Descriptions:
//   MODEM_SPIKE_DET - Configures the threshold for (G)FSK Spike Detection.
//   MODEM_ONE_SHOT_AFC - Configures parameters for th e One Shot AFC function and for BCR timing/acquisition.
*/
#define RF_MODEM_SPIKE_DET_2 0x11, 0x20, 0x02, 0x54, 0x03, 0x07

/*
// Set properties:           RF_MODEM_RSSI_MUTE_1
// Number of properties:     1
// Group ID:                 0x20
// Start ID:                 0x57
// Default values:           0x00, 
// Descriptions:
//   MODEM_RSSI_MUTE - Configures muting of the RSSI to avoid false RSSI interrupts.
*/
#define RF_MODEM_RSSI_MUTE_1 0x11, 0x20, 0x01, 0x57, 0x00

/*
// Set properties:           RF_MODEM_DSA_CTRL1_5
// Number of properties:     5
// Group ID:                 0x20
// Start ID:                 0x5B
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   MODEM_DSA_CTRL1 - Configures parameters for the Signal Arrival Detection circuit block and algorithm.
//   MODEM_DSA_CTRL2 - Configures parameters for the Signal Arrival Detection circuit block and algorithm.
//   MODEM_DSA_QUAL - Configures parameters for the Eye Opening qualification m ethod of the Signal Arrival Detection algorithm.
//   MODEM_DSA_RSSI - Signal Arrival Detect RSSI Qualifier Config
//   MODEM_DSA_MISC - Miscellaneous detection of signal arrival bits.
*/
#define RF_MODEM_DSA_CTRL1_5 0x11, 0x20, 0x05, 0x5B, 0x42, 0x04, 0x07, 0x78, 0x20

/*
// Set properties:           RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12
// Number of properties:     12
// Group ID:                 0x21
// Start ID:                 0x00
// Default values:           0xFF, 0xBA, 0x0F, 0x51, 0xCF, 0xA9, 0xC9, 0xFC, 0x1B, 0x1E, 0x0F, 0x01, 
// Descriptions:
//   MODEM_CHFLT_RX1_CHFLT_COE13_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE12_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE11_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE10_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE9_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE8_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE7_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE6_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE5_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE4_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE3_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE2_7_0 - Filter coefficients for the first set of RX filter coefficients.
*/
#define RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12 0x11, 0x21, 0x0C, 0x00, 0xCC, 0xA1, 0x30, 0xA0, 0x21, 0xD1, 0xB9, 0xC9, 0xEA, 0x05, 0x12, 0x11

/*
// Set properties:           RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12
// Number of properties:     12
// Group ID:                 0x21
// Start ID:                 0x0C
// Default values:           0xFC, 0xFD, 0x15, 0xFF, 0x00, 0x0F, 0xFF, 0xC4, 0x30, 0x7F, 0xF5, 0xB5, 
// Descriptions:
//   MODEM_CHFLT_RX1_CHFLT_COE1_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE0_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM1 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM2 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM3 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE13_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE12_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE11_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE10_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE9_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE8_7_0 - Filter coefficients for the second set of RX filter coefficients.
*/
#define RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12 0x11, 0x21, 0x0C, 0x0C, 0x0A, 0x04, 0x15, 0xFC, 0x03, 0x00, 0xCC, 0xA1, 0x30, 0xA0, 0x21, 0xD1

/*
// Set properties:           RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12
// Number of properties:     12
// Group ID:                 0x21
// Start ID:                 0x18
// Default values:           0xB8, 0xDE, 0x05, 0x17, 0x16, 0x0C, 0x03, 0x00, 0x15, 0xFF, 0x00, 0x00, 
// Descriptions:
//   MODEM_CHFLT_RX2_CHFLT_COE7_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE6_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE5_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE4_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE3_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE2_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE1_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE0_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM1 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM2 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM3 - Filter coefficients for the second set of RX filter coefficients.
*/
#define RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12 0x11, 0x21, 0x0C, 0x18, 0xB9, 0xC9, 0xEA, 0x05, 0x12, 0x11, 0x0A, 0x04, 0x15, 0xFC, 0x03, 0x00

/*
// Set properties:           RF_PA_MODE_4
// Number of properties:     4
// Group ID:                 0x22
// Start ID:                 0x00
// Default values:           0x08, 0x7F, 0x00, 0x5D, 
// Descriptions:
//   PA_MODE - Selects the PA operating mode, and selects resolution of PA power adjustment (i.e., step size).
//   PA_PWR_LVL - Configuration of PA output power level.
//   PA_BIAS_CLKDUTY - Configuration of the PA Bias and duty cycle of the TX clock source.
//   PA_TC - Configuration of PA ramping parameters.
*/
#define RF_PA_MODE_4 0x11, 0x22, 0x04, 0x00, 0x08, 0x7F, 0x00, 0x1D

/*
// Set properties:           RF_SYNTH_PFDCP_CPFF_7
// Number of properties:     7
// Group ID:                 0x23
// Start ID:                 0x00
// Default values:           0x2C, 0x0E, 0x0B, 0x04, 0x0C, 0x73, 0x03, 
// Descriptions:
//   SYNTH_PFDCP_CPFF - Feed forward charge pump current selection.
//   SYNTH_PFDCP_CPINT - Integration charge pump current selection.
//   SYNTH_VCO_KV - Gain scaling factors (Kv) for the VCO tuning varactors on both the integrated-path and feed forward path.
//   SYNTH_LPFILT3 - Value of resistor R2 in feed-forward path of loop filter.
//   SYNTH_LPFILT2 - Value of capacitor C2 in feed-forward path of loop filter.
//   SYNTH_LPFILT1 - Value of capacitors C1 and C3 in feed-forward path of loop filter.
//   SYNTH_LPFILT0 - Bias current of the active amplifier in the feed-forward loop filter.
*/
#define RF_SYNTH_PFDCP_CPFF_7 0x11, 0x23, 0x07, 0x00, 0x2C, 0x0E, 0x0B, 0x04, 0x0C, 0x73, 0x03

/*
// Set properties:           RF_MATCH_VALUE_1_12
// Number of properties:     12
// Group ID:                 0x30
// Start ID:                 0x00
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   MATCH_VALUE_1 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 1 value with the received Match 1 byte.
//   MATCH_MASK_1 - Mask value to be logically AND-ed (bit-wise) with the Match 1 byte.
//   MATCH_CTRL_1 - Enable for Packet Match functionality, and configuration of Match Byte 1.
//   MATCH_VALUE_2 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 2 value with the received Match 2 byte.
//   MATCH_MASK_2 - Mask value to be logically AND-ed (bit-wise) with the Match 2 byte.
//   MATCH_CTRL_2 - Configuration of Match Byte 2.
//   MATCH_VALUE_3 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 3 value with the received Match 3 byte.
//   MATCH_MASK_3 - Mask value to be logically AND-ed (bit-wise) with the Match 3 byte.
//   MATCH_CTRL_3 - Configuration of Match Byte 3.
//   MATCH_VALUE_4 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 4 value with the received Match 4 byte.
//   MATCH_MASK_4 - Mask value to be logically AND-ed (bit-wise) with the Match 4 byte.
//   MATCH_CTRL_4 - Configuration of Match Byte 4.
*/
#define RF_MATCH_VALUE_1_12 0x11, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_FREQ_CONTROL_INTE_8
// Number of properties:     8
// Group ID:                 0x40
// Start ID:                 0x00
// Default values:           0x3C, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0xFF, 
// Descriptions:
//   FREQ_CONTROL_INTE - Frac-N PLL Synthesizer integer divide number.
//   FREQ_CONTROL_FRAC_2 - Frac-N PLL fraction number.
//   FREQ_CONTROL_FRAC_1 - Frac-N PLL fraction number.
//   FREQ_CONTROL_FRAC_0 - Frac-N PLL fraction number.
//   FREQ_CONTROL_CHANNEL_STEP_SIZE_1 - EZ Frequency Programming channel step size.
//   FREQ_CONTROL_CHANNEL_STEP_SIZE_0 - EZ Frequency Programming channel step size.
//   FREQ_CONTROL_W_SIZE - Set window gating period (in number of crystal reference clock cycles) for counting VCO frequency during calibration.
//   FREQ_CONTROL_VCOCNT_RX_ADJ - Adjust target count for VCO calibration in RX mode.
*/
#define RF_FREQ_CONTROL_INTE_8 0x11, 0x40, 0x08, 0x00, 0x39, 0x0A, 0x22, 0x22, 0x06, 0xD4, 0x20, 0xFE


// AUTOMATICALLY GENERATED CODE! 
// DO NOT EDIT/MODIFY BELOW THIS LINE!
// --------------------------------------------

#ifndef FIRMWARE_LOAD_COMPILE
#define RADIO_CONFIGURATION_DATA_ARRAY { &#92;
        SI446X_PATCH_CMDS, &#92;
        0x07, RF_POWER_UP, &#92;
        0x08, RF_GPIO_PIN_CFG, &#92;
        0x06, RF_GLOBAL_XO_TUNE_2, &#92;
        0x05, RF_GLOBAL_CONFIG_1, &#92;
        0x06, RF_INT_CTL_ENABLE_2, &#92;
        0x08, RF_FRR_CTL_A_MODE_4, &#92;
        0x0D, RF_PREAMBLE_TX_LENGTH_9, &#92;
        0x0A, RF_SYNC_CONFIG_6, &#92;
        0x0B, RF_PKT_CRC_CONFIG_7, &#92;
        0x10, RF_PKT_LEN_12, &#92;
        0x10, RF_PKT_FIELD_2_CRC_CONFIG_12, &#92;
        0x10, RF_PKT_FIELD_5_CRC_CONFIG_12, &#92;
        0x0D, RF_PKT_RX_FIELD_3_CRC_CONFIG_9, &#92;
        0x08, RF_PKT_CRC_SEED_31_24_4, &#92;
        0x10, RF_MODEM_MOD_TYPE_12, &#92;
        0x05, RF_MODEM_FREQ_DEV_0_1, &#92;
        0x10, RF_MODEM_TX_RAMP_DELAY_12, &#92;
        0x10, RF_MODEM_BCR_NCO_OFFSET_2_12, &#92;
        0x07, RF_MODEM_AFC_LIMITER_1_3, &#92;
        0x05, RF_MODEM_AGC_CONTROL_1, &#92;
        0x10, RF_MODEM_AGC_WINDOW_SIZE_12, &#92;
        0x09, RF_MODEM_RAW_CONTROL_5, &#92;
        0x08, RF_MODEM_RSSI_JUMP_THRESH_4, &#92;
        0x06, RF_MODEM_RAW_SEARCH2_2, &#92;
        0x06, RF_MODEM_SPIKE_DET_2, &#92;
        0x05, RF_MODEM_RSSI_MUTE_1, &#92;
        0x09, RF_MODEM_DSA_CTRL1_5, &#92;
        0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12, &#92;
        0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12, &#92;
        0x10, RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12, &#92;
        0x08, RF_PA_MODE_4, &#92;
        0x0B, RF_SYNTH_PFDCP_CPFF_7, &#92;
        0x10, RF_MATCH_VALUE_1_12, &#92;
        0x0C, RF_FREQ_CONTROL_INTE_8, &#92;
        0x00 &#92;
 }
#else
#define RADIO_CONFIGURATION_DATA_ARRAY { 0 }
#endif

// DEFAULT VALUES FOR CONFIGURATION PARAMETERS
#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT                     30000000L
#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT                    0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT               0x10
#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT        0x01
#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT       0x1000
#define RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD_DEFAULT  				   {0x42, 0x55, 0x54, 0x54, 0x4F, 0x4E, 0x31} // BUTTON1 

#define RADIO_CONFIGURATION_DATA_RADIO_PATCH_INCLUDED                      0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PATCH_SIZE                          0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PATCH                               {  }

#ifndef RADIO_CONFIGURATION_DATA_ARRAY
#error "This property must be defined!"
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ
#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ          RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER
#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER         RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH
#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH    RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP
#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP   RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET
#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET  RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_CUSTOM_LONG_PAYLOAD
#define RADIO_CONFIGURATION_DATA_CUSTOM_LONG_PAYLOAD         RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD_DEFAULT 
#endif

#define RADIO_CONFIGURATION_DATA { &#92;
                            Radio_Configuration_Data_Array,                            &#92;
                            RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER,                   &#92;
                            RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH,              &#92;
                            RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP,       &#92;
                            RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET,      &#92;
                            Radio_Configuration_Data_Custom_Long_Payload_Array         &#92;
                            }

#endif /* RADIO_CONFIG_H_ */</code></div></div>]]></description>
			<content:encoded><![CDATA[Hei ! <br />
Kirjutan koodi SiLabs'i raadiokivile Si4463. Suhtluse sain tööle ja tootja WDS3 konfiguraatoriga leitud konfi suudan saata. Ka paketi saatmine justkui õnnestusks sest Packet_sent_int tekib. Paraku ei arva spektrianalüsaator et midagi saadeti ja teine Si4463 kivi vastuvõtjana ei kuule ka mitte midagi. <br />
Kahtlane on miski patch commands värk. WDS3 käseb need saata aga ma ei oska saata. Käsufail on olemas (2128 baiti). Kui saata raadiole startup käsk nagu WDS3 tahab ehk boodi patchitud kood, siis ei suuda raadio pakette saata. kui see bitt maha võtta, on ta maru kindel et sai saadetud. Kivid ise on pärit HC-12 serial port extenderi plaadilt kust jootsin originaalse prose maha ja vedasin juhtmed oma PICi külge. <br />
Ühes Si foorumis väideti et too patch ei tee sisuliselt midagi...<br />
Raadiokivi konf on lisatud. Kasutan long packet tx stsenaariumit.<br />
<br />
Ideed on otsas...mida paganat ma valesti teen ?<br />
<br />
<br />
<div class="codeblock"><div class="title">Kood:</div><div class="body" dir="ltr"><code>/*! @file radio_config.h
 * @brief This file contains the automatically generated
 * configurations.
 *
 * @n WDS GUI Version: 3.2.9.0
 * @n Device: Si4463 Rev.: C2                                 
 *
 * @b COPYRIGHT
 * @n Silicon Laboratories Confidential
 * @n Copyright 2015 Silicon Laboratories, Inc.
 * @n http://www.silabs.com
 */

#ifndef RADIO_CONFIG_H_
#define RADIO_CONFIG_H_

// USER DEFINED PARAMETERS
// Define your own parameters here

// INPUT DATA
/*
// Crys_freq(Hz): 30000000    Crys_tol(ppm): 20    IF_mode: 2    High_perf_Ch_Fil: 1    OSRtune: 0    Ch_Fil_Bw_AFC: 0    ANT_DIV: 0    PM_pattern: 0    
// MOD_type: 3    Rsymb(sps): 9600    Fdev(Hz): 10000    RXBW(Hz): 150000    Manchester: 0    AFC_en: 0    Rsymb_error: 0.0    Chip-Version: 2    
// RF Freq.(MHz): 437    API_TC: 29    fhst: 25000    inputBW: 0    BERT: 0    RAW_dout: 0    D_source: 0    Hi_pfm_div: 1    
// API_ARR_Det_en: 0    Fdev_error: 0    API_ETSI: 0    
// 
// # RX IF frequency is  -468750 Hz
// # WB filter 3 (BW =  61.74 kHz);  NB-filter 3 (BW = 61.74 kHz)
// 
// Modulation index: 2,083
*/


// CONFIGURATION PARAMETERS
#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ                     30000000L
#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER                    0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH               0xFF
#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP        0x03
#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET       0xF000
#define RADIO_CONFIGURATION_DATA_CUSTOM_LONG_PAYLOAD					   {0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, &#92;
0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5}

#include "..&#92;drivers&#92;radio&#92;Si446x&#92;si446x_patch.h"


// CONFIGURATION COMMANDS

/*
// Command:                  RF_POWER_UP
// Description:              Command to power-up the device and select the operational mode and functionality.
*/
#define RF_POWER_UP 0x02, 0x81, 0x00, 0x01, 0xC9, 0xC3, 0x80

/*
// Command:                  RF_GPIO_PIN_CFG
// Description:              Configures the GPIO pins.
*/
#define RF_GPIO_PIN_CFG 0x13, 0x04, 0x00, 0x60, 0x61, 0x00, 0x00, 0x00

/*
// Set properties:           RF_GLOBAL_XO_TUNE_2
// Number of properties:     2
// Group ID:                 0x00
// Start ID:                 0x00
// Default values:           0x40, 0x00, 
// Descriptions:
//   GLOBAL_XO_TUNE - Configure the internal capacitor frequency tuning bank for the crystal oscillator.
//   GLOBAL_CLK_CFG - Clock configuration options.
*/
#define RF_GLOBAL_XO_TUNE_2 0x11, 0x00, 0x02, 0x00, 0x52, 0x00

/*
// Set properties:           RF_GLOBAL_CONFIG_1
// Number of properties:     1
// Group ID:                 0x00
// Start ID:                 0x03
// Default values:           0x20, 
// Descriptions:
//   GLOBAL_CONFIG - Global configuration settings.
*/
#define RF_GLOBAL_CONFIG_1 0x11, 0x00, 0x01, 0x03, 0x20

/*
// Set properties:           RF_INT_CTL_ENABLE_2
// Number of properties:     2
// Group ID:                 0x01
// Start ID:                 0x00
// Default values:           0x04, 0x00, 
// Descriptions:
//   INT_CTL_ENABLE - This property provides for global enabling of the three interrupt groups (Chip, Modem and Packet Handler) in order to generate HW interrupts at the NIRQ pin.
//   INT_CTL_PH_ENABLE - Enable individual interrupt sources within the Packet Handler Interrupt Group to generate a HW interrupt on the NIRQ output pin.
*/
#define RF_INT_CTL_ENABLE_2 0x11, 0x01, 0x02, 0x00, 0x01, 0x33

/*
// Set properties:           RF_FRR_CTL_A_MODE_4
// Number of properties:     4
// Group ID:                 0x02
// Start ID:                 0x00
// Default values:           0x01, 0x02, 0x09, 0x00, 
// Descriptions:
//   FRR_CTL_A_MODE - Fast Response Register A Configuration.
//   FRR_CTL_B_MODE - Fast Response Register B Configuration.
//   FRR_CTL_C_MODE - Fast Response Register C Configuration.
//   FRR_CTL_D_MODE - Fast Response Register D Configuration.
*/
#define RF_FRR_CTL_A_MODE_4 0x11, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PREAMBLE_TX_LENGTH_9
// Number of properties:     9
// Group ID:                 0x10
// Start ID:                 0x00
// Default values:           0x08, 0x14, 0x00, 0x0F, 0x21, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PREAMBLE_TX_LENGTH - Configure length of TX Preamble.
//   PREAMBLE_CONFIG_STD_1 - Configuration of reception of a packet with a Standard Preamble pattern.
//   PREAMBLE_CONFIG_NSTD - Configuration of transmission/reception of a packet with a Non-Standard Preamble pattern.
//   PREAMBLE_CONFIG_STD_2 - Configuration of timeout periods during reception of a packet with Standard Preamble pattern.
//   PREAMBLE_CONFIG - General configuration bits for the Preamble field.
//   PREAMBLE_PATTERN_31_24 - Configuration of the bit values describing a Non-Standard Preamble pattern.
//   PREAMBLE_PATTERN_23_16 - Configuration of the bit values describing a Non-Standard Preamble pattern.
//   PREAMBLE_PATTERN_15_8 - Configuration of the bit values describing a Non-Standard Preamble pattern.
//   PREAMBLE_PATTERN_7_0 - Configuration of the bit values describing a Non-Standard Preamble pattern.
*/
#define RF_PREAMBLE_TX_LENGTH_9 0x11, 0x10, 0x09, 0x00, 0x08, 0x14, 0x00, 0x0F, 0x31, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_SYNC_CONFIG_6
// Number of properties:     6
// Group ID:                 0x11
// Start ID:                 0x00
// Default values:           0x01, 0x2D, 0xD4, 0x2D, 0xD4, 0x00, 
// Descriptions:
//   SYNC_CONFIG - Sync Word configuration bits.
//   SYNC_BITS_31_24 - Sync word.
//   SYNC_BITS_23_16 - Sync word.
//   SYNC_BITS_15_8 - Sync word.
//   SYNC_BITS_7_0 - Sync word.
//   SYNC_CONFIG2 - Sync Word configuration bits.
*/
#define RF_SYNC_CONFIG_6 0x11, 0x11, 0x06, 0x00, 0x01, 0x7C, 0xD6, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_CRC_CONFIG_7
// Number of properties:     7
// Group ID:                 0x12
// Start ID:                 0x00
// Default values:           0x00, 0x01, 0x08, 0xFF, 0xFF, 0x00, 0x00, 
// Descriptions:
//   PKT_CRC_CONFIG - Select a CRC polynomial and seed.
//   PKT_WHT_POLY_15_8 - 16-bit polynomial value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_POLY_7_0 - 16-bit polynomial value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_SEED_15_8 - 16-bit seed value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_SEED_7_0 - 16-bit seed value for the PN Generator (e.g., for Data Whitening)
//   PKT_WHT_BIT_NUM - Selects which bit of the LFSR (used to generate the PN / data whitening sequence) is used as the output bit for data scrambling.
//   PKT_CONFIG1 - General configuration bits for transmission or reception of a packet.
*/
#define RF_PKT_CRC_CONFIG_7 0x11, 0x12, 0x07, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x20, 0x02

/*
// Set properties:           RF_PKT_LEN_12
// Number of properties:     12
// Group ID:                 0x12
// Start ID:                 0x08
// Default values:           0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_LEN - Configuration bits for reception of a variable length packet.
//   PKT_LEN_FIELD_SOURCE - Field number containing the received packet length byte(s).
//   PKT_LEN_ADJUST - Provides for adjustment/offset of the received packet length value (in order to accommodate a variety of methods of defining total packet length).
//   PKT_TX_THRESHOLD - TX FIFO almost empty threshold.
//   PKT_RX_THRESHOLD - RX FIFO Almost Full threshold.
//   PKT_FIELD_1_LENGTH_12_8 - Unsigned 13-bit Field 1 length value.
//   PKT_FIELD_1_LENGTH_7_0 - Unsigned 13-bit Field 1 length value.
//   PKT_FIELD_1_CONFIG - General data processing and packet configuration bits for Field 1.
//   PKT_FIELD_1_CRC_CONFIG - Configuration of CRC control bits across Field 1.
//   PKT_FIELD_2_LENGTH_12_8 - Unsigned 13-bit Field 2 length value.
//   PKT_FIELD_2_LENGTH_7_0 - Unsigned 13-bit Field 2 length value.
//   PKT_FIELD_2_CONFIG - General data processing and packet configuration bits for Field 2.
*/
#define RF_PKT_LEN_12 0x11, 0x12, 0x0C, 0x08, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00, 0xFF, 0x04, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_FIELD_2_CRC_CONFIG_12
// Number of properties:     12
// Group ID:                 0x12
// Start ID:                 0x14
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_FIELD_2_CRC_CONFIG - Configuration of CRC control bits across Field 2.
//   PKT_FIELD_3_LENGTH_12_8 - Unsigned 13-bit Field 3 length value.
//   PKT_FIELD_3_LENGTH_7_0 - Unsigned 13-bit Field 3 length value.
//   PKT_FIELD_3_CONFIG - General data processing and packet configuration bits for Field 3.
//   PKT_FIELD_3_CRC_CONFIG - Configuration of CRC control bits across Field 3.
//   PKT_FIELD_4_LENGTH_12_8 - Unsigned 13-bit Field 4 length value.
//   PKT_FIELD_4_LENGTH_7_0 - Unsigned 13-bit Field 4 length value.
//   PKT_FIELD_4_CONFIG - General data processing and packet configuration bits for Field 4.
//   PKT_FIELD_4_CRC_CONFIG - Configuration of CRC control bits across Field 4.
//   PKT_FIELD_5_LENGTH_12_8 - Unsigned 13-bit Field 5 length value.
//   PKT_FIELD_5_LENGTH_7_0 - Unsigned 13-bit Field 5 length value.
//   PKT_FIELD_5_CONFIG - General data processing and packet configuration bits for Field 5.
*/
#define RF_PKT_FIELD_2_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_FIELD_5_CRC_CONFIG_12
// Number of properties:     12
// Group ID:                 0x12
// Start ID:                 0x20
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_FIELD_5_CRC_CONFIG - Configuration of CRC control bits across Field 5.
//   PKT_RX_FIELD_1_LENGTH_12_8 - Unsigned 13-bit RX Field 1 length value.
//   PKT_RX_FIELD_1_LENGTH_7_0 - Unsigned 13-bit RX Field 1 length value.
//   PKT_RX_FIELD_1_CONFIG - General data processing and packet configuration bits for RX Field 1.
//   PKT_RX_FIELD_1_CRC_CONFIG - Configuration of CRC control bits across RX Field 1.
//   PKT_RX_FIELD_2_LENGTH_12_8 - Unsigned 13-bit RX Field 2 length value.
//   PKT_RX_FIELD_2_LENGTH_7_0 - Unsigned 13-bit RX Field 2 length value.
//   PKT_RX_FIELD_2_CONFIG - General data processing and packet configuration bits for RX Field 2.
//   PKT_RX_FIELD_2_CRC_CONFIG - Configuration of CRC control bits across RX Field 2.
//   PKT_RX_FIELD_3_LENGTH_12_8 - Unsigned 13-bit RX Field 3 length value.
//   PKT_RX_FIELD_3_LENGTH_7_0 - Unsigned 13-bit RX Field 3 length value.
//   PKT_RX_FIELD_3_CONFIG - General data processing and packet configuration bits for RX Field 3.
*/
#define RF_PKT_FIELD_5_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_RX_FIELD_3_CRC_CONFIG_9
// Number of properties:     9
// Group ID:                 0x12
// Start ID:                 0x2C
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_RX_FIELD_3_CRC_CONFIG - Configuration of CRC control bits across RX Field 3.
//   PKT_RX_FIELD_4_LENGTH_12_8 - Unsigned 13-bit RX Field 4 length value.
//   PKT_RX_FIELD_4_LENGTH_7_0 - Unsigned 13-bit RX Field 4 length value.
//   PKT_RX_FIELD_4_CONFIG - General data processing and packet configuration bits for RX Field 4.
//   PKT_RX_FIELD_4_CRC_CONFIG - Configuration of CRC control bits across RX Field 4.
//   PKT_RX_FIELD_5_LENGTH_12_8 - Unsigned 13-bit RX Field 5 length value.
//   PKT_RX_FIELD_5_LENGTH_7_0 - Unsigned 13-bit RX Field 5 length value.
//   PKT_RX_FIELD_5_CONFIG - General data processing and packet configuration bits for RX Field 5.
//   PKT_RX_FIELD_5_CRC_CONFIG - Configuration of CRC control bits across RX Field 5.
*/
#define RF_PKT_RX_FIELD_3_CRC_CONFIG_9 0x11, 0x12, 0x09, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_PKT_CRC_SEED_31_24_4
// Number of properties:     4
// Group ID:                 0x12
// Start ID:                 0x36
// Default values:           0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   PKT_CRC_SEED_31_24 - 32-bit seed value for the 32-bit CRC engine
//   PKT_CRC_SEED_23_16 - 32-bit seed value for the 32-bit CRC engine
//   PKT_CRC_SEED_15_8 - 32-bit seed value for the 32-bit CRC engine
//   PKT_CRC_SEED_7_0 - 32-bit seed value for the 32-bit CRC engine
*/
#define RF_PKT_CRC_SEED_31_24_4 0x11, 0x12, 0x04, 0x36, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_MODEM_MOD_TYPE_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x00
// Default values:           0x02, 0x80, 0x07, 0x0F, 0x42, 0x40, 0x01, 0xC9, 0xC3, 0x80, 0x00, 0x06, 
// Descriptions:
//   MODEM_MOD_TYPE - Selects the type of modulation. In TX mode, additionally selects the source of the modulation.
//   MODEM_MAP_CONTROL - Controls polarity and mapping of transmit and receive bits.
//   MODEM_DSM_CTRL - Miscellaneous control bits for the Delta-Sigma Modulator (DSM) in the PLL Synthesizer.
//   MODEM_DATA_RATE_2 - Unsigned 24-bit value used to determine the TX data rate
//   MODEM_DATA_RATE_1 - Unsigned 24-bit value used to determine the TX data rate
//   MODEM_DATA_RATE_0 - Unsigned 24-bit value used to determine the TX data rate
//   MODEM_TX_NCO_MODE_3 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_TX_NCO_MODE_2 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_TX_NCO_MODE_1 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_TX_NCO_MODE_0 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
//   MODEM_FREQ_DEV_2 - 17-bit unsigned TX frequency deviation word.
//   MODEM_FREQ_DEV_1 - 17-bit unsigned TX frequency deviation word.
*/
#define RF_MODEM_MOD_TYPE_12 0x11, 0x20, 0x0C, 0x00, 0x03, 0x00, 0x07, 0x05, 0xDC, 0x00, 0x05, 0xC9, 0xC3, 0x80, 0x00, 0x02

/*
// Set properties:           RF_MODEM_FREQ_DEV_0_1
// Number of properties:     1
// Group ID:                 0x20
// Start ID:                 0x0C
// Default values:           0xD3, 
// Descriptions:
//   MODEM_FREQ_DEV_0 - 17-bit unsigned TX frequency deviation word.
*/
#define RF_MODEM_FREQ_DEV_0_1 0x11, 0x20, 0x01, 0x0C, 0xBB

/*
// Set properties:           RF_MODEM_TX_RAMP_DELAY_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x18
// Default values:           0x01, 0x00, 0x08, 0x03, 0xC0, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x4B, 
// Descriptions:
//   MODEM_TX_RAMP_DELAY - TX ramp-down delay setting.
//   MODEM_MDM_CTRL - MDM control.
//   MODEM_IF_CONTROL - Selects Fixed-IF, Scaled-IF, or Zero-IF mode of RX Modem operation.
//   MODEM_IF_FREQ_2 - the IF frequency setting (an 18-bit signed number).
//   MODEM_IF_FREQ_1 - the IF frequency setting (an 18-bit signed number).
//   MODEM_IF_FREQ_0 - the IF frequency setting (an 18-bit signed number).
//   MODEM_DECIMATION_CFG1 - Specifies three decimator ratios for the Cascaded Integrator Comb (CIC) filter.
//   MODEM_DECIMATION_CFG0 - Specifies miscellaneous parameters and decimator ratios for the Cascaded Integrator Comb (CIC) filter.
//   MODEM_DECIMATION_CFG2 - Specifies miscellaneous decimator filter selections.
//   MODEM_IFPKD_THRESHOLDS - 
//   MODEM_BCR_OSR_1 - RX BCR/Slicer oversampling rate (12-bit unsigned number).
//   MODEM_BCR_OSR_0 - RX BCR/Slicer oversampling rate (12-bit unsigned number).
*/
#define RF_MODEM_TX_RAMP_DELAY_12 0x11, 0x20, 0x0C, 0x18, 0x01, 0x80, 0x08, 0x03, 0x80, 0x00, 0x20, 0x10, 0x00, 0xE8, 0x01, 0x04

/*
// Set properties:           RF_MODEM_BCR_NCO_OFFSET_2_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x24
// Default values:           0x06, 0xD3, 0xA0, 0x06, 0xD3, 0x02, 0xC0, 0x00, 0x00, 0x23, 0x83, 0x69, 
// Descriptions:
//   MODEM_BCR_NCO_OFFSET_2 - RX BCR NCO offset value (an unsigned 22-bit number).
//   MODEM_BCR_NCO_OFFSET_1 - RX BCR NCO offset value (an unsigned 22-bit number).
//   MODEM_BCR_NCO_OFFSET_0 - RX BCR NCO offset value (an unsigned 22-bit number).
//   MODEM_BCR_GAIN_1 - The unsigned 11-bit RX BCR loop gain value.
//   MODEM_BCR_GAIN_0 - The unsigned 11-bit RX BCR loop gain value.
//   MODEM_BCR_GEAR - RX BCR loop gear control.
//   MODEM_BCR_MISC1 - Miscellaneous control bits for the RX BCR loop.
//   MODEM_BCR_MISC0 - Miscellaneous RX BCR loop controls.
//   MODEM_AFC_GEAR - RX AFC loop gear control.
//   MODEM_AFC_WAIT - RX AFC loop wait time control.
//   MODEM_AFC_GAIN_1 - Sets the gain of the PLL-based AFC acquisition loop, and provides miscellaneous control bits for AFC functionality.
//   MODEM_AFC_GAIN_0 - Sets the gain of the PLL-based AFC acquisition loop, and provides miscellaneous control bits for AFC functionality.
*/
#define RF_MODEM_BCR_NCO_OFFSET_2_12 0x11, 0x20, 0x0C, 0x24, 0x01, 0xF7, 0x51, 0x00, 0xFC, 0x02, 0xC2, 0x00, 0x04, 0x32, 0x80, 0x1C

/*
// Set properties:           RF_MODEM_AFC_LIMITER_1_3
// Number of properties:     3
// Group ID:                 0x20
// Start ID:                 0x30
// Default values:           0x00, 0x40, 0xA0, 
// Descriptions:
//   MODEM_AFC_LIMITER_1 - Set the AFC limiter value.
//   MODEM_AFC_LIMITER_0 - Set the AFC limiter value.
//   MODEM_AFC_MISC - Specifies miscellaneous AFC control bits.
*/
#define RF_MODEM_AFC_LIMITER_1_3 0x11, 0x20, 0x03, 0x30, 0x0C, 0x6F, 0x80

/*
// Set properties:           RF_MODEM_AGC_CONTROL_1
// Number of properties:     1
// Group ID:                 0x20
// Start ID:                 0x35
// Default values:           0xE0, 
// Descriptions:
//   MODEM_AGC_CONTROL - Miscellaneous control bits for the Automatic Gain Control (AGC) function in the RX Chain.
*/
#define RF_MODEM_AGC_CONTROL_1 0x11, 0x20, 0x01, 0x35, 0xE0

/*
// Set properties:           RF_MODEM_AGC_WINDOW_SIZE_12
// Number of properties:     12
// Group ID:                 0x20
// Start ID:                 0x38
// Default values:           0x11, 0x10, 0x10, 0x0B, 0x1C, 0x40, 0x00, 0x00, 0x2B, 0x0C, 0xA4, 0x03, 
// Descriptions:
//   MODEM_AGC_WINDOW_SIZE - Specifies the size of the measurement and settling windows for the AGC algorithm.
//   MODEM_AGC_RFPD_DECAY - Sets the decay time of the RF peak detectors.
//   MODEM_AGC_IFPD_DECAY - Sets the decay time of the IF peak detectors.
//   MODEM_FSK4_GAIN1 - Specifies the gain factor of the secondary branch in 4(G)FSK ISI-suppression.
//   MODEM_FSK4_GAIN0 - Specifies the gain factor of the primary branch in 4(G)FSK ISI-suppression.
//   MODEM_FSK4_TH1 - 16 bit 4(G)FSK slicer threshold.
//   MODEM_FSK4_TH0 - 16 bit 4(G)FSK slicer threshold.
//   MODEM_FSK4_MAP - 4(G)FSK symbol mapping code.
//   MODEM_OOK_PDTC - Configures the attack and decay times of the OOK Peak Detector.
//   MODEM_OOK_BLOPK - Configures the slicing reference level of the OOK Peak Detector.
//   MODEM_OOK_CNT1 - OOK control.
//   MODEM_OOK_MISC - Selects the detector(s) used for demodulation of an OOK signal, or for demodulation of a (G)FSK signal when using the asynchronous demodulator.
*/
#define RF_MODEM_AGC_WINDOW_SIZE_12 0x11, 0x20, 0x0C, 0x38, 0x11, 0x39, 0x39, 0x80, 0x1A, 0x85, 0x55, 0x00, 0x2A, 0x0C, 0xA4, 0x22

/*
// Set properties:           RF_MODEM_RAW_CONTROL_5
// Number of properties:     5
// Group ID:                 0x20
// Start ID:                 0x45
// Default values:           0x02, 0x00, 0xA3, 0x02, 0x80, 
// Descriptions:
//   MODEM_RAW_CONTROL - Defines gain and enable controls for raw / nonstandard mode.
//   MODEM_RAW_EYE_1 - 11 bit eye-open detector threshold.
//   MODEM_RAW_EYE_0 - 11 bit eye-open detector threshold.
//   MODEM_ANT_DIV_MODE - Antenna diversity mode settings.
//   MODEM_ANT_DIV_CONTROL - Specifies controls for the Antenna Diversity algorithm.
*/
#define RF_MODEM_RAW_CONTROL_5 0x11, 0x20, 0x05, 0x45, 0x83, 0x00, 0xA6, 0x02, 0x00

/*
// Set properties:           RF_MODEM_RSSI_JUMP_THRESH_4
// Number of properties:     4
// Group ID:                 0x20
// Start ID:                 0x4B
// Default values:           0x0C, 0x01, 0x00, 0x40, 
// Descriptions:
//   MODEM_RSSI_JUMP_THRESH - Configures the RSSI Jump Detection threshold.
//   MODEM_RSSI_CONTROL - Control of the averaging modes and latching time for reporting RSSI value(s).
//   MODEM_RSSI_CONTROL2 - RSSI Jump Detection control.
//   MODEM_RSSI_COMP - RSSI compensation value.
*/
#define RF_MODEM_RSSI_JUMP_THRESH_4 0x11, 0x20, 0x04, 0x4B, 0x06, 0x09, 0x1C, 0x40

/*
// Set properties:           RF_MODEM_RAW_SEARCH2_2
// Number of properties:     2
// Group ID:                 0x20
// Start ID:                 0x50
// Default values:           0x00, 0x08, 
// Descriptions:
//   MODEM_RAW_SEARCH2 - Defines and controls the search period length for the Moving Average and Min-Max detectors.
//   MODEM_CLKGEN_BAND - Select PLL Synthesizer output divider ratio as a function of frequency band.
*/
#define RF_MODEM_RAW_SEARCH2_2 0x11, 0x20, 0x02, 0x50, 0x84, 0x0A

/*
// Set properties:           RF_MODEM_SPIKE_DET_2
// Number of properties:     2
// Group ID:                 0x20
// Start ID:                 0x54
// Default values:           0x00, 0x00, 
// Descriptions:
//   MODEM_SPIKE_DET - Configures the threshold for (G)FSK Spike Detection.
//   MODEM_ONE_SHOT_AFC - Configures parameters for th e One Shot AFC function and for BCR timing/acquisition.
*/
#define RF_MODEM_SPIKE_DET_2 0x11, 0x20, 0x02, 0x54, 0x03, 0x07

/*
// Set properties:           RF_MODEM_RSSI_MUTE_1
// Number of properties:     1
// Group ID:                 0x20
// Start ID:                 0x57
// Default values:           0x00, 
// Descriptions:
//   MODEM_RSSI_MUTE - Configures muting of the RSSI to avoid false RSSI interrupts.
*/
#define RF_MODEM_RSSI_MUTE_1 0x11, 0x20, 0x01, 0x57, 0x00

/*
// Set properties:           RF_MODEM_DSA_CTRL1_5
// Number of properties:     5
// Group ID:                 0x20
// Start ID:                 0x5B
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   MODEM_DSA_CTRL1 - Configures parameters for the Signal Arrival Detection circuit block and algorithm.
//   MODEM_DSA_CTRL2 - Configures parameters for the Signal Arrival Detection circuit block and algorithm.
//   MODEM_DSA_QUAL - Configures parameters for the Eye Opening qualification m ethod of the Signal Arrival Detection algorithm.
//   MODEM_DSA_RSSI - Signal Arrival Detect RSSI Qualifier Config
//   MODEM_DSA_MISC - Miscellaneous detection of signal arrival bits.
*/
#define RF_MODEM_DSA_CTRL1_5 0x11, 0x20, 0x05, 0x5B, 0x42, 0x04, 0x07, 0x78, 0x20

/*
// Set properties:           RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12
// Number of properties:     12
// Group ID:                 0x21
// Start ID:                 0x00
// Default values:           0xFF, 0xBA, 0x0F, 0x51, 0xCF, 0xA9, 0xC9, 0xFC, 0x1B, 0x1E, 0x0F, 0x01, 
// Descriptions:
//   MODEM_CHFLT_RX1_CHFLT_COE13_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE12_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE11_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE10_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE9_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE8_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE7_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE6_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE5_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE4_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE3_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE2_7_0 - Filter coefficients for the first set of RX filter coefficients.
*/
#define RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12 0x11, 0x21, 0x0C, 0x00, 0xCC, 0xA1, 0x30, 0xA0, 0x21, 0xD1, 0xB9, 0xC9, 0xEA, 0x05, 0x12, 0x11

/*
// Set properties:           RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12
// Number of properties:     12
// Group ID:                 0x21
// Start ID:                 0x0C
// Default values:           0xFC, 0xFD, 0x15, 0xFF, 0x00, 0x0F, 0xFF, 0xC4, 0x30, 0x7F, 0xF5, 0xB5, 
// Descriptions:
//   MODEM_CHFLT_RX1_CHFLT_COE1_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COE0_7_0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM0 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM1 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM2 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX1_CHFLT_COEM3 - Filter coefficients for the first set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE13_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE12_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE11_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE10_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE9_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE8_7_0 - Filter coefficients for the second set of RX filter coefficients.
*/
#define RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12 0x11, 0x21, 0x0C, 0x0C, 0x0A, 0x04, 0x15, 0xFC, 0x03, 0x00, 0xCC, 0xA1, 0x30, 0xA0, 0x21, 0xD1

/*
// Set properties:           RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12
// Number of properties:     12
// Group ID:                 0x21
// Start ID:                 0x18
// Default values:           0xB8, 0xDE, 0x05, 0x17, 0x16, 0x0C, 0x03, 0x00, 0x15, 0xFF, 0x00, 0x00, 
// Descriptions:
//   MODEM_CHFLT_RX2_CHFLT_COE7_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE6_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE5_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE4_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE3_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE2_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE1_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COE0_7_0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM0 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM1 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM2 - Filter coefficients for the second set of RX filter coefficients.
//   MODEM_CHFLT_RX2_CHFLT_COEM3 - Filter coefficients for the second set of RX filter coefficients.
*/
#define RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12 0x11, 0x21, 0x0C, 0x18, 0xB9, 0xC9, 0xEA, 0x05, 0x12, 0x11, 0x0A, 0x04, 0x15, 0xFC, 0x03, 0x00

/*
// Set properties:           RF_PA_MODE_4
// Number of properties:     4
// Group ID:                 0x22
// Start ID:                 0x00
// Default values:           0x08, 0x7F, 0x00, 0x5D, 
// Descriptions:
//   PA_MODE - Selects the PA operating mode, and selects resolution of PA power adjustment (i.e., step size).
//   PA_PWR_LVL - Configuration of PA output power level.
//   PA_BIAS_CLKDUTY - Configuration of the PA Bias and duty cycle of the TX clock source.
//   PA_TC - Configuration of PA ramping parameters.
*/
#define RF_PA_MODE_4 0x11, 0x22, 0x04, 0x00, 0x08, 0x7F, 0x00, 0x1D

/*
// Set properties:           RF_SYNTH_PFDCP_CPFF_7
// Number of properties:     7
// Group ID:                 0x23
// Start ID:                 0x00
// Default values:           0x2C, 0x0E, 0x0B, 0x04, 0x0C, 0x73, 0x03, 
// Descriptions:
//   SYNTH_PFDCP_CPFF - Feed forward charge pump current selection.
//   SYNTH_PFDCP_CPINT - Integration charge pump current selection.
//   SYNTH_VCO_KV - Gain scaling factors (Kv) for the VCO tuning varactors on both the integrated-path and feed forward path.
//   SYNTH_LPFILT3 - Value of resistor R2 in feed-forward path of loop filter.
//   SYNTH_LPFILT2 - Value of capacitor C2 in feed-forward path of loop filter.
//   SYNTH_LPFILT1 - Value of capacitors C1 and C3 in feed-forward path of loop filter.
//   SYNTH_LPFILT0 - Bias current of the active amplifier in the feed-forward loop filter.
*/
#define RF_SYNTH_PFDCP_CPFF_7 0x11, 0x23, 0x07, 0x00, 0x2C, 0x0E, 0x0B, 0x04, 0x0C, 0x73, 0x03

/*
// Set properties:           RF_MATCH_VALUE_1_12
// Number of properties:     12
// Group ID:                 0x30
// Start ID:                 0x00
// Default values:           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
// Descriptions:
//   MATCH_VALUE_1 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 1 value with the received Match 1 byte.
//   MATCH_MASK_1 - Mask value to be logically AND-ed (bit-wise) with the Match 1 byte.
//   MATCH_CTRL_1 - Enable for Packet Match functionality, and configuration of Match Byte 1.
//   MATCH_VALUE_2 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 2 value with the received Match 2 byte.
//   MATCH_MASK_2 - Mask value to be logically AND-ed (bit-wise) with the Match 2 byte.
//   MATCH_CTRL_2 - Configuration of Match Byte 2.
//   MATCH_VALUE_3 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 3 value with the received Match 3 byte.
//   MATCH_MASK_3 - Mask value to be logically AND-ed (bit-wise) with the Match 3 byte.
//   MATCH_CTRL_3 - Configuration of Match Byte 3.
//   MATCH_VALUE_4 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 4 value with the received Match 4 byte.
//   MATCH_MASK_4 - Mask value to be logically AND-ed (bit-wise) with the Match 4 byte.
//   MATCH_CTRL_4 - Configuration of Match Byte 4.
*/
#define RF_MATCH_VALUE_1_12 0x11, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

/*
// Set properties:           RF_FREQ_CONTROL_INTE_8
// Number of properties:     8
// Group ID:                 0x40
// Start ID:                 0x00
// Default values:           0x3C, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0xFF, 
// Descriptions:
//   FREQ_CONTROL_INTE - Frac-N PLL Synthesizer integer divide number.
//   FREQ_CONTROL_FRAC_2 - Frac-N PLL fraction number.
//   FREQ_CONTROL_FRAC_1 - Frac-N PLL fraction number.
//   FREQ_CONTROL_FRAC_0 - Frac-N PLL fraction number.
//   FREQ_CONTROL_CHANNEL_STEP_SIZE_1 - EZ Frequency Programming channel step size.
//   FREQ_CONTROL_CHANNEL_STEP_SIZE_0 - EZ Frequency Programming channel step size.
//   FREQ_CONTROL_W_SIZE - Set window gating period (in number of crystal reference clock cycles) for counting VCO frequency during calibration.
//   FREQ_CONTROL_VCOCNT_RX_ADJ - Adjust target count for VCO calibration in RX mode.
*/
#define RF_FREQ_CONTROL_INTE_8 0x11, 0x40, 0x08, 0x00, 0x39, 0x0A, 0x22, 0x22, 0x06, 0xD4, 0x20, 0xFE


// AUTOMATICALLY GENERATED CODE! 
// DO NOT EDIT/MODIFY BELOW THIS LINE!
// --------------------------------------------

#ifndef FIRMWARE_LOAD_COMPILE
#define RADIO_CONFIGURATION_DATA_ARRAY { &#92;
        SI446X_PATCH_CMDS, &#92;
        0x07, RF_POWER_UP, &#92;
        0x08, RF_GPIO_PIN_CFG, &#92;
        0x06, RF_GLOBAL_XO_TUNE_2, &#92;
        0x05, RF_GLOBAL_CONFIG_1, &#92;
        0x06, RF_INT_CTL_ENABLE_2, &#92;
        0x08, RF_FRR_CTL_A_MODE_4, &#92;
        0x0D, RF_PREAMBLE_TX_LENGTH_9, &#92;
        0x0A, RF_SYNC_CONFIG_6, &#92;
        0x0B, RF_PKT_CRC_CONFIG_7, &#92;
        0x10, RF_PKT_LEN_12, &#92;
        0x10, RF_PKT_FIELD_2_CRC_CONFIG_12, &#92;
        0x10, RF_PKT_FIELD_5_CRC_CONFIG_12, &#92;
        0x0D, RF_PKT_RX_FIELD_3_CRC_CONFIG_9, &#92;
        0x08, RF_PKT_CRC_SEED_31_24_4, &#92;
        0x10, RF_MODEM_MOD_TYPE_12, &#92;
        0x05, RF_MODEM_FREQ_DEV_0_1, &#92;
        0x10, RF_MODEM_TX_RAMP_DELAY_12, &#92;
        0x10, RF_MODEM_BCR_NCO_OFFSET_2_12, &#92;
        0x07, RF_MODEM_AFC_LIMITER_1_3, &#92;
        0x05, RF_MODEM_AGC_CONTROL_1, &#92;
        0x10, RF_MODEM_AGC_WINDOW_SIZE_12, &#92;
        0x09, RF_MODEM_RAW_CONTROL_5, &#92;
        0x08, RF_MODEM_RSSI_JUMP_THRESH_4, &#92;
        0x06, RF_MODEM_RAW_SEARCH2_2, &#92;
        0x06, RF_MODEM_SPIKE_DET_2, &#92;
        0x05, RF_MODEM_RSSI_MUTE_1, &#92;
        0x09, RF_MODEM_DSA_CTRL1_5, &#92;
        0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12, &#92;
        0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12, &#92;
        0x10, RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12, &#92;
        0x08, RF_PA_MODE_4, &#92;
        0x0B, RF_SYNTH_PFDCP_CPFF_7, &#92;
        0x10, RF_MATCH_VALUE_1_12, &#92;
        0x0C, RF_FREQ_CONTROL_INTE_8, &#92;
        0x00 &#92;
 }
#else
#define RADIO_CONFIGURATION_DATA_ARRAY { 0 }
#endif

// DEFAULT VALUES FOR CONFIGURATION PARAMETERS
#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT                     30000000L
#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT                    0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT               0x10
#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT        0x01
#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT       0x1000
#define RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD_DEFAULT  				   {0x42, 0x55, 0x54, 0x54, 0x4F, 0x4E, 0x31} // BUTTON1 

#define RADIO_CONFIGURATION_DATA_RADIO_PATCH_INCLUDED                      0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PATCH_SIZE                          0x00
#define RADIO_CONFIGURATION_DATA_RADIO_PATCH                               {  }

#ifndef RADIO_CONFIGURATION_DATA_ARRAY
#error "This property must be defined!"
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ
#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ          RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER
#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER         RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH
#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH    RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP
#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP   RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET
#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET  RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT 
#endif

#ifndef RADIO_CONFIGURATION_DATA_CUSTOM_LONG_PAYLOAD
#define RADIO_CONFIGURATION_DATA_CUSTOM_LONG_PAYLOAD         RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD_DEFAULT 
#endif

#define RADIO_CONFIGURATION_DATA { &#92;
                            Radio_Configuration_Data_Array,                            &#92;
                            RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER,                   &#92;
                            RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH,              &#92;
                            RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP,       &#92;
                            RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET,      &#92;
                            Radio_Configuration_Data_Custom_Long_Payload_Array         &#92;
                            }

#endif /* RADIO_CONFIG_H_ */</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Serialiga suhtlemine VB6-s]]></title>
			<link>https://elektroonikafoorum.com/thread-652.html</link>
			<pubDate>Fri, 26 Feb 2016 19:18:02 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=23">felch</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-652.html</guid>
			<description><![CDATA[Hei elektroonikud!<br />
<br />
Kirjutasin Tipi kuupsatelliidi toiteplaadi testimiseks VB6-s pisikese proge. Kõik töötab aga ma ei suuda kuidagi saata päringuid kiiremini kui ca 300ms tagant. Seda on ikka häbematult vähe küll. Bootloaderi kasutamine võtab ca 15minutit...<br />
Tundub, et süüdlaseks on funktsioon DoEvents (), mida olen sunnitud kasutama et üleüldse midagi pordist kätte saada. F-n annab juhtimise üle op-süsteemile, mis siis jobutab mõnuga...<br />
Mida teha? TAhaks ikka vähemasti iga 10ms tagant plaati pommitada.<br />
Uuemat VB-d nagu eriti ei viitsiks õppima hakata kui just teisiti ei saa. TEgelikult korra siiski proovisn ja nagu polnud märkimisväärselt kiirem. Samas oli serialiga suhtlus ikka väga mäda <img src="https://elektroonikafoorum.com/images/smilies/sad.gif" alt="Sad" title="Sad" class="smilie smilie_8" /><br />
Jah, saan kirjutada mõnele teisele PICile sobiva koodi (ja hetkel proovina ka niiviisi) aga siis ma ei saa kenasti kõiki näite ülevaatlikule ekraanipildile ja...on nagu veidi kummaline lähenemine anyway.<br />
<br />
Head soovitused on oodatud.<br />
<br />
Veljo]]></description>
			<content:encoded><![CDATA[Hei elektroonikud!<br />
<br />
Kirjutasin Tipi kuupsatelliidi toiteplaadi testimiseks VB6-s pisikese proge. Kõik töötab aga ma ei suuda kuidagi saata päringuid kiiremini kui ca 300ms tagant. Seda on ikka häbematult vähe küll. Bootloaderi kasutamine võtab ca 15minutit...<br />
Tundub, et süüdlaseks on funktsioon DoEvents (), mida olen sunnitud kasutama et üleüldse midagi pordist kätte saada. F-n annab juhtimise üle op-süsteemile, mis siis jobutab mõnuga...<br />
Mida teha? TAhaks ikka vähemasti iga 10ms tagant plaati pommitada.<br />
Uuemat VB-d nagu eriti ei viitsiks õppima hakata kui just teisiti ei saa. TEgelikult korra siiski proovisn ja nagu polnud märkimisväärselt kiirem. Samas oli serialiga suhtlus ikka väga mäda <img src="https://elektroonikafoorum.com/images/smilies/sad.gif" alt="Sad" title="Sad" class="smilie smilie_8" /><br />
Jah, saan kirjutada mõnele teisele PICile sobiva koodi (ja hetkel proovina ka niiviisi) aga siis ma ei saa kenasti kõiki näite ülevaatlikule ekraanipildile ja...on nagu veidi kummaline lähenemine anyway.<br />
<br />
Head soovitused on oodatud.<br />
<br />
Veljo]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Teviso radioaktiivse kirguse andur RD3024 ja sarnased]]></title>
			<link>https://elektroonikafoorum.com/thread-647.html</link>
			<pubDate>Fri, 22 Jan 2016 20:13:34 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=23">felch</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-647.html</guid>
			<description><![CDATA[Teadmiseks lihtsalt.<br />
<br />
Andur RD3024 (<a href="http://www.teviso.com/en/products/radiation-sensor-rd3024.htm" target="_blank" rel="noopener" class="mycode_url">http://www.teviso.com/en/products/radiat...rd3024.htm</a><br />
) on väga äge asi aga DS on veidi puudulik. Või siis on minu mütsialune selliine.... <img src="https://elektroonikafoorum.com/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
DS-ist saan aru, et väljundpulss on konkreetne TTL nivooga asi. Oss näitab aga hoopis midagi muud. Pulsi kuju meenutab spektroskoopiliste andurite formeeritud "gaussian" kellukest suvalise amplituudiga. Tekkis mõte, et äkki ongi nii hea asi: mõõda vaid amplituudi ja saadki energia kätte....<br />
Tutkit, brat!<br />
Suppordilt õnnestus lõpuks välja pressida teadmine, et pulsi amplituud ega ka laius EI ole siiski seotud detektorisse langenud osakese energiaga. <br />
Muide, support väitis, et nad kasutavad kalibreerimiseks Cs-127 allikat, mida pole tegelikult olemas. On aga Cs-137...<br />
Hüva, aga mis amplituudist siis lugeda pulss kehtivaks ? Sellele ei saanudki vastust. Katsetades tekkis oletus, et tuleb kasutada TTL-kivide rakendumisläve. Kuna ma loen anduri signaali protsessori  sisseehitatud komparaatoriga, andsin ette kõrgeima võimaliku läve (2,3V toitepingel 3,3V @ PIC18F47J13) ja siis loksus näit reaalsuse piiridesse.<br />
<br />
Kas kellelgi on veel täpsustavat infot ?<br />
<br />
Veljo]]></description>
			<content:encoded><![CDATA[Teadmiseks lihtsalt.<br />
<br />
Andur RD3024 (<a href="http://www.teviso.com/en/products/radiation-sensor-rd3024.htm" target="_blank" rel="noopener" class="mycode_url">http://www.teviso.com/en/products/radiat...rd3024.htm</a><br />
) on väga äge asi aga DS on veidi puudulik. Või siis on minu mütsialune selliine.... <img src="https://elektroonikafoorum.com/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
DS-ist saan aru, et väljundpulss on konkreetne TTL nivooga asi. Oss näitab aga hoopis midagi muud. Pulsi kuju meenutab spektroskoopiliste andurite formeeritud "gaussian" kellukest suvalise amplituudiga. Tekkis mõte, et äkki ongi nii hea asi: mõõda vaid amplituudi ja saadki energia kätte....<br />
Tutkit, brat!<br />
Suppordilt õnnestus lõpuks välja pressida teadmine, et pulsi amplituud ega ka laius EI ole siiski seotud detektorisse langenud osakese energiaga. <br />
Muide, support väitis, et nad kasutavad kalibreerimiseks Cs-127 allikat, mida pole tegelikult olemas. On aga Cs-137...<br />
Hüva, aga mis amplituudist siis lugeda pulss kehtivaks ? Sellele ei saanudki vastust. Katsetades tekkis oletus, et tuleb kasutada TTL-kivide rakendumisläve. Kuna ma loen anduri signaali protsessori  sisseehitatud komparaatoriga, andsin ette kõrgeima võimaliku läve (2,3V toitepingel 3,3V @ PIC18F47J13) ja siis loksus näit reaalsuse piiridesse.<br />
<br />
Kas kellelgi on veel täpsustavat infot ?<br />
<br />
Veljo]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Servodraivi "viirus"]]></title>
			<link>https://elektroonikafoorum.com/thread-643.html</link>
			<pubDate>Wed, 16 Dec 2015 13:05:44 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=181">juxx</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-643.html</guid>
			<description><![CDATA[<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font"><span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">---8&lt;------</span></span></span>------teen copy-paste Elfa foorumisse postitatud teemast ---8&lt;------</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Tere ! Vaja oleks targematelt nõu küsida.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Mul on siin üks tootmisliin, mille liikumist korraldavad servomootorid. Mootorite juhtimine käib läbi MOOG DS2000 draivide.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Mingil ajal hakkas üks neist viskama viga - "Flash Checksum Error". Kui viga teadmiseks võtta ja ära kustutada, töötab normaalselt edasi.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Nüüd on see käitumine levinud juba viiele draivile. Ajuks on seal sees TMS320F240PQ, EEPROMi kusagil läheduses ei paista. Datasheet ütleb, et kivi ise sisaldab 16kB Flashi.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Kas asi võib olla selles, et EEPROM eluiga hakkab ümber saama ? ..ja kas võib oodata, et mingil hetkel draivi vahetamisest pääsu pole ?</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">J.</span></span></span><br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font"><img src="http://www.elfafoorum.ee/attachment.php?attachmentid=12195&amp;d=1450267218" loading="lazy"  alt="[Pilt: attachment.php?attachmentid=12195&amp;d=1450267218]" class="mycode_img" /></span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font"><img src="http://www.elfafoorum.ee/attachment.php?attachmentid=12194&amp;d=1450267083" loading="lazy"  alt="[Pilt: attachment.php?attachmentid=12194&amp;d=1450267083]" class="mycode_img" /></span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">J.</span></span></span>]]></description>
			<content:encoded><![CDATA[<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font"><span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">---8&lt;------</span></span></span>------teen copy-paste Elfa foorumisse postitatud teemast ---8&lt;------</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Tere ! Vaja oleks targematelt nõu küsida.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Mul on siin üks tootmisliin, mille liikumist korraldavad servomootorid. Mootorite juhtimine käib läbi MOOG DS2000 draivide.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Mingil ajal hakkas üks neist viskama viga - "Flash Checksum Error". Kui viga teadmiseks võtta ja ära kustutada, töötab normaalselt edasi.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Nüüd on see käitumine levinud juba viiele draivile. Ajuks on seal sees TMS320F240PQ, EEPROMi kusagil läheduses ei paista. Datasheet ütleb, et kivi ise sisaldab 16kB Flashi.</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">Kas asi võib olla selles, et EEPROM eluiga hakkab ümber saama ? ..ja kas võib oodata, et mingil hetkel draivi vahetamisest pääsu pole ?</span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">J.</span></span></span><br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font"><img src="http://www.elfafoorum.ee/attachment.php?attachmentid=12195&amp;d=1450267218" loading="lazy"  alt="[Pilt: attachment.php?attachmentid=12195&amp;d=1450267218]" class="mycode_img" /></span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font"><img src="http://www.elfafoorum.ee/attachment.php?attachmentid=12194&amp;d=1450267083" loading="lazy"  alt="[Pilt: attachment.php?attachmentid=12194&amp;d=1450267083]" class="mycode_img" /></span></span></span><br />
<br />
<span style="color: #333333;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif;" class="mycode_font">J.</span></span></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIC18F87xxx seeria]]></title>
			<link>https://elektroonikafoorum.com/thread-634.html</link>
			<pubDate>Wed, 07 Oct 2015 05:27:23 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=23">felch</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-634.html</guid>
			<description><![CDATA[PortF väljundid F3 ja F4 on DSi järgi nii tavaline I/O kui ka USB. Oma kurvast kogemusest selgus, et mainit pinnid ei oma väljundi funktsiooni - ainult sisend või siis USB. Isegi Microchipi viimane DS väidab kangekaelselt et on ikka küll väljund. <br />
No ei ole mitte!<br />
Õige vastuse leidsin  nende enda foorumist kus väidetakse samuti, et need pinnid ei tööta väljunditena.<br />
<br />
Lihtsalt teadmiseks, ehk jääb kellelgi plaadi layout'i viga tegemata...]]></description>
			<content:encoded><![CDATA[PortF väljundid F3 ja F4 on DSi järgi nii tavaline I/O kui ka USB. Oma kurvast kogemusest selgus, et mainit pinnid ei oma väljundi funktsiooni - ainult sisend või siis USB. Isegi Microchipi viimane DS väidab kangekaelselt et on ikka küll väljund. <br />
No ei ole mitte!<br />
Õige vastuse leidsin  nende enda foorumist kus väidetakse samuti, et need pinnid ei tööta väljunditena.<br />
<br />
Lihtsalt teadmiseks, ehk jääb kellelgi plaadi layout'i viga tegemata...]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[AVR studio projekt (müramõõtja)]]></title>
			<link>https://elektroonikafoorum.com/thread-620.html</link>
			<pubDate>Tue, 21 Jul 2015 16:18:28 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=23">felch</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-620.html</guid>
			<description><![CDATA[Hei !<br />
<br />
Oskab keegi anda lollile nõu, kuidas saaksin projekti AVR studio 4-ga kompileerida? Kompilaator pahandab: c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: spl.elf section .text will not fit in region text<br />
Kaasapandud makefilega aga samuti: undefined reference to main kuskil failis.<br />
Üks AVRi spets vaatas: oh, kohe teeme. Mõne aja pärast hakkas tal kiire ja pidi ära minema... <img src="https://elektroonikafoorum.com/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Projekti link: <a href="https://sourceforge.net/projects/davidegironi/files/avr-splmeter/avr_splmeter_02b.zip/download" target="_blank" rel="noopener" class="mycode_url">https://sourceforge.net/projects/davideg...p/download</a>]]></description>
			<content:encoded><![CDATA[Hei !<br />
<br />
Oskab keegi anda lollile nõu, kuidas saaksin projekti AVR studio 4-ga kompileerida? Kompilaator pahandab: c:/winavr-20100110/bin/../lib/gcc/avr/4.3.3/../../../../avr/bin/ld.exe: spl.elf section .text will not fit in region text<br />
Kaasapandud makefilega aga samuti: undefined reference to main kuskil failis.<br />
Üks AVRi spets vaatas: oh, kohe teeme. Mõne aja pärast hakkas tal kiire ja pidi ära minema... <img src="https://elektroonikafoorum.com/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Projekti link: <a href="https://sourceforge.net/projects/davidegironi/files/avr-splmeter/avr_splmeter_02b.zip/download" target="_blank" rel="noopener" class="mycode_url">https://sourceforge.net/projects/davideg...p/download</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Mõõdame UV-indeksit]]></title>
			<link>https://elektroonikafoorum.com/thread-617.html</link>
			<pubDate>Fri, 03 Jul 2015 04:58:55 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://elektroonikafoorum.com/member.php?action=profile&uid=23">felch</a>]]></dc:creator>
			<guid isPermaLink="false">https://elektroonikafoorum.com/thread-617.html</guid>
			<description><![CDATA[Hei, elektroonikud !<br />
<br />
Oma ilmajaamas (<a href="http://parsek.yf.ttu.ee/weather/" target="_blank" rel="noopener" class="mycode_url">http://parsek.yf.ttu.ee/weather/</a>) kasutan ML8511 UV-andurit. Sellel on alalispinge väljund ja kiirgusenergia ning pinge vaheline seos on teada ( <a href="https://www.google.ee/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=7&amp;cad=rja&amp;uact=8&amp;ved=0CDMQFjAG&amp;url=https%3A%2F%2Fcdn.sparkfun.com%2Fdatasheets%2FSensors%2FLightImaging%2FML8511_3-8-13.pdf&amp;ei=7hSWVeqHLIWlsgGkyIOwCg&amp;usg=AFQjCNFAbtLkO_b2GQ0DHM4Yszbtd16qrg&amp;bvm=bv.96952980,d.bGg" target="_blank" rel="noopener" class="mycode_url">https://www.google.ee/url?sa=t&amp;rct=j&amp;q=&amp;...2980,d.bGg</a>)<br />
Küsimus on pinge teisendamises UV indeksiks. Netis on palju näiteid, kus asi on pandud Arduino külge aga need vähesed kes UVindeksit mõõdavad, ei põhjenda oma algoritmi. On lihtsalt kuskilt mingi tabel võetud ja muudkui konverditakse. <br />
Tahaks täpsemat valemit.<br />
Tartu lehel kirjeldatakse UV-indeksi olemust: <a href="http://sputnik.aai.ee/koduleht/uvindeks.php" target="_blank" rel="noopener" class="mycode_url">http://sputnik.aai.ee/koduleht/uvindeks.php</a><br />
Seda ja datasheedi energiaid ei suuda aga kuidagi kokku klapitada, justkui oleks mingi number veel puudu.<br />
Ühed tüübid on avaldanud tabeli anduri väljundpinge ja UV-indeksi vahelise sõltuvuse kohta: <a href="http://www.cse.buffalo.edu/~wenyaoxu/papers/conference/xu-bodynets2013a.pdf" target="_blank" rel="noopener" class="mycode_url">http://www.cse.buffalo.edu/~wenyaoxu/pap...s2013a.pdf</a><br />
Selle järgi pidi eile päeval olema indeks ca 20 aga Tartu leht arvas et vaid 6 !???<br />
<br />
Keegi oskab seletada?<br />
<br />
PS. OKI enda DSi järgi (<a href="http://www.weather-above.com/ML8511.pdf" target="_blank" rel="noopener" class="mycode_url">http://www.weather-above.com/ML8511.pdf</a>) võib pinge/UVindeksi sõltuvus olla õige aga siis on näit ikkagi liiga suur...]]></description>
			<content:encoded><![CDATA[Hei, elektroonikud !<br />
<br />
Oma ilmajaamas (<a href="http://parsek.yf.ttu.ee/weather/" target="_blank" rel="noopener" class="mycode_url">http://parsek.yf.ttu.ee/weather/</a>) kasutan ML8511 UV-andurit. Sellel on alalispinge väljund ja kiirgusenergia ning pinge vaheline seos on teada ( <a href="https://www.google.ee/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=7&amp;cad=rja&amp;uact=8&amp;ved=0CDMQFjAG&amp;url=https%3A%2F%2Fcdn.sparkfun.com%2Fdatasheets%2FSensors%2FLightImaging%2FML8511_3-8-13.pdf&amp;ei=7hSWVeqHLIWlsgGkyIOwCg&amp;usg=AFQjCNFAbtLkO_b2GQ0DHM4Yszbtd16qrg&amp;bvm=bv.96952980,d.bGg" target="_blank" rel="noopener" class="mycode_url">https://www.google.ee/url?sa=t&amp;rct=j&amp;q=&amp;...2980,d.bGg</a>)<br />
Küsimus on pinge teisendamises UV indeksiks. Netis on palju näiteid, kus asi on pandud Arduino külge aga need vähesed kes UVindeksit mõõdavad, ei põhjenda oma algoritmi. On lihtsalt kuskilt mingi tabel võetud ja muudkui konverditakse. <br />
Tahaks täpsemat valemit.<br />
Tartu lehel kirjeldatakse UV-indeksi olemust: <a href="http://sputnik.aai.ee/koduleht/uvindeks.php" target="_blank" rel="noopener" class="mycode_url">http://sputnik.aai.ee/koduleht/uvindeks.php</a><br />
Seda ja datasheedi energiaid ei suuda aga kuidagi kokku klapitada, justkui oleks mingi number veel puudu.<br />
Ühed tüübid on avaldanud tabeli anduri väljundpinge ja UV-indeksi vahelise sõltuvuse kohta: <a href="http://www.cse.buffalo.edu/~wenyaoxu/papers/conference/xu-bodynets2013a.pdf" target="_blank" rel="noopener" class="mycode_url">http://www.cse.buffalo.edu/~wenyaoxu/pap...s2013a.pdf</a><br />
Selle järgi pidi eile päeval olema indeks ca 20 aga Tartu leht arvas et vaid 6 !???<br />
<br />
Keegi oskab seletada?<br />
<br />
PS. OKI enda DSi järgi (<a href="http://www.weather-above.com/ML8511.pdf" target="_blank" rel="noopener" class="mycode_url">http://www.weather-above.com/ML8511.pdf</a>) võib pinge/UVindeksi sõltuvus olla õige aga siis on näit ikkagi liiga suur...]]></content:encoded>
		</item>
	</channel>
</rss>