The Transceiver Access Toolbox is implemented as an easy-to-use library that covers most of the functionality provided by the AT86RF230 radio transceiver. The library is completely written in the C programming language.
The Transceiver Access Toolbox is MISRA Compliant to the required rule set, with the following exceptions:
Rule 1: No compiler extensions allowed. Comment: Not possible to meet, since we are on an embedded target where interrupts are needed.
Rule 37: Bitwise operations is not allowed on signed integer types. Comment: This is an error in the MISRA parser, since no singned variable is used. Problem seams to be in stdint.h.
Rule 54: Null statement can only be on a line by itself. Comment: Triggered by the AVR_ENTER_CRITICAL_REGION macro. This macro can be written out so that the error goes away. The macro is only used for convenience.
Rule 71: No prototype seen. Comment: This error orginates from how interrupt handlers are implemented in IAR.
Rule 96: Function like macro shall be enclosed in parenthesis. Comment: Triggered by the AVR_ENTER_CRITICAL_REGION macro. This macro can be written out so that the error goes away. The macro is only used for convenience and readability of the code.
Rule 109: Usage of unions. MISRA does not allow overlapping storage.