ARM mbed Nanostack RF driver for NXP KW41Z 802.15.4 wireless MCU
ARM mbed Nanostack RF driver for NXP KW41Z 802.15.4 wireless MCU
This driver is used with 6LoWPAN stack.
Code far from being stable yet, but basic functionality seems to be working. Two FRDM-KW41Z boards running code build from mbed-os-example-mesh-minimal and nanostack-border-router are able to build mesh.
Main repository is at https://github.com/istepura/kw41z-rf-driver
kw41-rf-driver/NanostackRfPhyKw41z.h@3:9f6427e86978, 2017-07-23 (annotated)
- Committer:
- Igor Stepura
- Date:
- Sun Jul 23 13:49:19 2017 -0400
- Revision:
- 3:9f6427e86978
- Parent:
- 1:4e0ed8184753
Add energy detection and timeout support
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor Stepura |
0:bb6687c3a462 | 1 | /* |
igor Stepura |
1:4e0ed8184753 | 2 | Copyright 2017, Igor Stepura <igor.stepura@gmail.com> |
igor Stepura |
1:4e0ed8184753 | 3 | |
igor Stepura |
1:4e0ed8184753 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
igor Stepura |
1:4e0ed8184753 | 5 | you may not use this file except in compliance with the License. |
igor Stepura |
1:4e0ed8184753 | 6 | You may obtain a copy of the License at |
igor Stepura |
1:4e0ed8184753 | 7 | |
igor Stepura |
1:4e0ed8184753 | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
igor Stepura |
0:bb6687c3a462 | 9 | |
igor Stepura |
1:4e0ed8184753 | 10 | Unless required by applicable law or agreed to in writing, software |
igor Stepura |
1:4e0ed8184753 | 11 | distributed under the License is distributed on an "AS IS" BASIS, |
igor Stepura |
1:4e0ed8184753 | 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
igor Stepura |
1:4e0ed8184753 | 13 | See the License for the specific language governing permissions and |
igor Stepura |
1:4e0ed8184753 | 14 | limitations under the License. |
igor Stepura |
1:4e0ed8184753 | 15 | */ |
igor Stepura |
1:4e0ed8184753 | 16 | |
igor Stepura |
1:4e0ed8184753 | 17 | #ifndef NANOSTACK_RF_PHY_KW41Z_H_ |
igor Stepura |
1:4e0ed8184753 | 18 | #define NANOSTACK_RF_PHY_KW41Z_H_ |
igor Stepura |
0:bb6687c3a462 | 19 | |
igor Stepura |
0:bb6687c3a462 | 20 | #include "ns_types.h" |
igor Stepura |
0:bb6687c3a462 | 21 | #include "NanostackRfPhy.h" |
igor Stepura |
0:bb6687c3a462 | 22 | |
igor Stepura |
0:bb6687c3a462 | 23 | class NanostackRfPhyKw41z : public NanostackRfPhy { |
igor Stepura |
0:bb6687c3a462 | 24 | public: |
igor Stepura |
0:bb6687c3a462 | 25 | NanostackRfPhyKw41z(); |
igor Stepura |
0:bb6687c3a462 | 26 | ~NanostackRfPhyKw41z(); |
igor Stepura |
0:bb6687c3a462 | 27 | int8_t rf_register(); |
igor Stepura |
0:bb6687c3a462 | 28 | void rf_unregister(); |
igor Stepura |
0:bb6687c3a462 | 29 | void get_mac_address(uint8_t *mac); |
igor Stepura |
0:bb6687c3a462 | 30 | void set_mac_address(uint8_t *mac); |
igor Stepura |
0:bb6687c3a462 | 31 | }; |
igor Stepura |
0:bb6687c3a462 | 32 | |
igor Stepura |
1:4e0ed8184753 | 33 | #endif /* NANOSTACK_RF_PHY_KW41Z_H_ */ |