mac802154_scan.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /****************************************************************************
  2. * wireless/ieee802154/mac802154_scan.h
  3. *
  4. * Copyright (C) 2017 Verge Inc. All rights reserved.
  5. * Copyright (C) 2017 Gregory Nutt. All rights reserved.
  6. *
  7. * Author: Anthony Merlino <anthony@vergeaero.com>
  8. * Author: Gregory Nutt <gnutt@nuttx.org>
  9. *
  10. * The naming and comments for various fields are taken directly
  11. * from the IEEE 802.15.4 2011 standard.
  12. *
  13. * Redistribution and use in source and binary forms, with or without
  14. * modification, are permitted provided that the following conditions
  15. * are met:
  16. *
  17. * 1. Redistributions of source code must retain the above copyright
  18. * notice, this list of conditions and the following disclaimer.
  19. * 2. Redistributions in binary form must reproduce the above copyright
  20. * notice, this list of conditions and the following disclaimer in
  21. * the documentation and/or other materials provided with the
  22. * distribution.
  23. * 3. Neither the name NuttX nor the names of its contributors may be
  24. * used to endorse or promote products derived from this software
  25. * without specific prior written permission.
  26. *
  27. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  28. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  29. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  30. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  31. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  32. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  33. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  34. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  35. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  37. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  38. * POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. ****************************************************************************/
  41. #ifndef __WIRELESS_IEEE802154__MAC802154_SCAN_H
  42. #define __WIRELESS_IEEE802154__MAC802154_SCAN_H
  43. /****************************************************************************
  44. * Included Files
  45. ****************************************************************************/
  46. #include <nuttx/config.h>
  47. #include <stdint.h>
  48. #include <stdbool.h>
  49. #include <nuttx/wireless/ieee802154/ieee802154_mac.h>
  50. #include <nuttx/wireless/ieee802154/ieee802154_radio.h>
  51. /****************************************************************************
  52. * Function Prototypes
  53. ****************************************************************************/
  54. struct ieee802154_privmac_s; /* Forward Reference */
  55. void mac802154_edscan_onresult(FAR struct ieee802154_privmac_s *priv, uint8_t edval);
  56. void mac802154_scanfinish(FAR struct ieee802154_privmac_s *priv,
  57. enum ieee802154_status_e status);
  58. #endif /* __WIRELESS_IEEE802154__MAC802154_SCAN_H */