Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/10/06 07:11
Read: times


 
#126110 - Some more info why I wan't to use an API
Responding to: ???'s previous message
Hi people,

sorry for the late post, I was on a longer trip. So anyway to get it right. The API is for a mixed signal radio transreciever ASIC chip.

The digital part of the chip is based on the 8051 core and
it has plenty of features implemented inside. So the idea behind an API is to create a library that supports:
1. the whole radio configuration
2. the protocol stack
3. routing, encryption
etc.

The API will contain macros like Russ mentioned in his post, but also functions to save codespace.
I think it is quite usefull for the application developer. Because for example to send a message several stuff must be done: configure synthetisrer, choose frequency, set datarate, switch on A/D convertor, configure sleep mode, fill sendbuffer, etc...

The API should also offer some protection so the APP developer with a way that it will not set a HW configuration that is not "allowed" (i.e. clear the sending buffer while the data is transmitted or use the timer that is intended to be used during transmission). So the API actualy SHOULD reduce the errors which the APP developer can make.

Another advantage of using an library for an ASIC is the HW indipendence. The API should have an hardware abstraction layer with drivers and a SW layer. In case there will be another ASIC chip with a little bit modified HW structure, it is enough to change the drivers and let the other code intact.

This is what I actualy mean under abstraction. Not generating a code from a flow charts or simmilar stuff.

Of course the APP developer must still know how the HW works, and he is not forced to use the API, he can access the HW directly.

I have just read the book Embedded System Architecture from Tammy Noergaard and in the chapter SW design there are similar ideas as in Russ and Russel's posts.

greetings
Attila

List of 32 messages in thread
TopicAuthorDate
Uncalled segments problem with library            01/01/70 00:00      
   Work with the tools!            01/01/70 00:00      
      I didn't know that is the standard way...            01/01/70 00:00      
         Not a 'C' language issue.            01/01/70 00:00      
         Not True            01/01/70 00:00      
   abstraction my butt            01/01/70 00:00      
      Abstraction HAS a meaning in embedded            01/01/70 00:00      
         yes sure            01/01/70 00:00      
         so why do you do these things            01/01/70 00:00      
            Maybe I don't know what abstraction is...            01/01/70 00:00      
               Hardware knowledge            01/01/70 00:00      
      Abstraction: NOT Always Bad            01/01/70 00:00      
         10 points Russ            01/01/70 00:00      
            shades of grey            01/01/70 00:00      
               Maybe abstraction is not the issue            01/01/70 00:00      
                  Useful?            01/01/70 00:00      
                     Pascal            01/01/70 00:00      
                     etc, etc            01/01/70 00:00      
                  is a libray function an "abstraction"?            01/01/70 00:00      
                     Is a library function an abstraction?            01/01/70 00:00      
                  I rest my case, m'lud            01/01/70 00:00      
                     Attila! Where are you?            01/01/70 00:00      
                  CodeArchitect?            01/01/70 00:00      
                     CodeArchitect?            01/01/70 00:00      
                     it generates source code; however            01/01/70 00:00      
         about abstraction ...            01/01/70 00:00      
            By Jove, I think you've got it!            01/01/70 00:00      
         Some more info why I wan't to use an API            01/01/70 00:00      
            a TOTALLY different story            01/01/70 00:00      
               Provide the source code...            01/01/70 00:00      
            Some more info why I wan't to use an hard disk            01/01/70 00:00      
               two mistakes            01/01/70 00:00      

Back to Subject List