Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20784

BASCOM-AVR : Const - how to Create a Const and set a default value? : REPLY

$
0
0
[quote:29bb988eb7="six1"]maybe your copied code was only part... if there is a "#define" before this:[/quote:29bb988eb7] This is no copied code, it is the description of the API interface for Silabs Si446x series, which is to reveal by a google for some of the keywords. [url]http://nicerf.com/manage/upfile/indexbanner/635231050196868750.pdf[/url] Why do I just think would have been the duty of the TO to show this, and not let people run around in riddles? To interface with the API, or maybe rebuild parts of it in Bascom would look like that: [code:1:29bb988eb7]Const GLOBAL_LOW_BATT_THRESH = 0x0002[/code:1:29bb988eb7] A separate table needs to be set up for the defaults, where they can be looked up based on the given constant.

Viewing all articles
Browse latest Browse all 20784

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>