|
Wiselib
|
Basic concept for Os specialization. More...
Inherits concepts::BasicReturnValues_concept.
Public Types | |
| enum | { SUCCESS, ERR_UNSPEC, ERR_NOMEM, ERR_BUSY, ERR_NOTIMPL, ERR_NETDOWN, ERR_HOSTUNREACH } |
| enum | StateValues { READY, NO_VALUE, INACTIVE } |
Public Attributes | |
| typedef | size_t |
| Unsigned integer that represents length information. | |
| typedef | block_data_t |
| Data type used for raw data in message sending process. | |
| typedef | Radio |
| Standard Radio that is used for message sending and registration of message reception callback. | |
| typedef | Timer |
| Standard Timer that is used for message sending and registration of message reception callback. | |
| typedef | Debug |
| Standard Debug interface that is used for message sending and registration of message reception callback. | |
Basic concept for Os specialization.
Each Os Model of the Os Concept (that is, an implementation for a specific system) provide default types for the basic Os facets (Radio, Timer, Debug). Hence, a routing algorithm can typically use Os::Radio as its Radio, but also accept a Radio as a template parameter, so that also special implementations can be passed to the algorithm.
Furthermore, an Os Model provides a size type size_t, which is used for any kind of size information and should be set to an unsigned integral type, and a default block data type block_data_t used for data buffers.
anonymous enum [inherited] |
enum concepts::BasicReturnValues_concept::StateValues [inherited] |
Data type used for raw data in message sending process.
Usually an uint8_t.
| typedef concepts::Os_concept::Debug |
Standard Debug interface that is used for message sending and registration of message reception callback.
If no Debug interface is passed to an algorithm, it is able to get a standard one over a model of the Os Facet.
| typedef concepts::Os_concept::Radio |
Standard Radio that is used for message sending and registration of message reception callback.
If no Radio is passed to an algorithm, it is able to get a standard one over a model of the Os Facet.
| typedef concepts::Os_concept::size_t |
Unsigned integer that represents length information.
| typedef concepts::Os_concept::Timer |
Standard Timer that is used for message sending and registration of message reception callback.
If no Timer is passed to an algorithm, it is able to get a standard one over a model of the Os Facet.
1.7.4