easy connect wnc added to http request with debug mode enabled. traces collected for AT%CGEQOS, AT%MEAS, AT%PCONI
Dependencies: WNC14A2AInterface-httpmodified
Fork of easy-connect by
mcr20a-rf-driver/source/XcvrSpi.h@8:54ac58ec99d5, 2017-12-14 (annotated)
- Committer:
- nrithya
- Date:
- Thu Dec 14 00:33:15 2017 +0000
- Revision:
- 8:54ac58ec99d5
- Parent:
- 0:2563b0415d1f
easy connect wnc added to http request with debug mode enabled. traces collected for AT%CGEQOS, AT%MEAS, AT%PCONI
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:2563b0415d1f | 1 | /*! |
JMF | 0:2563b0415d1f | 2 | * Copyright (c) 2015, Freescale Semiconductor, Inc. |
JMF | 0:2563b0415d1f | 3 | * All rights reserved. |
JMF | 0:2563b0415d1f | 4 | * |
JMF | 0:2563b0415d1f | 5 | * \file XcvrSpi.h |
JMF | 0:2563b0415d1f | 6 | * |
JMF | 0:2563b0415d1f | 7 | * Redistribution and use in source and binary forms, with or without modification, |
JMF | 0:2563b0415d1f | 8 | * are permitted provided that the following conditions are met: |
JMF | 0:2563b0415d1f | 9 | * |
JMF | 0:2563b0415d1f | 10 | * o Redistributions of source code must retain the above copyright notice, this list |
JMF | 0:2563b0415d1f | 11 | * of conditions and the following disclaimer. |
JMF | 0:2563b0415d1f | 12 | * |
JMF | 0:2563b0415d1f | 13 | * o Redistributions in binary form must reproduce the above copyright notice, this |
JMF | 0:2563b0415d1f | 14 | * list of conditions and the following disclaimer in the documentation and/or |
JMF | 0:2563b0415d1f | 15 | * other materials provided with the distribution. |
JMF | 0:2563b0415d1f | 16 | * |
JMF | 0:2563b0415d1f | 17 | * o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
JMF | 0:2563b0415d1f | 18 | * contributors may be used to endorse or promote products derived from this |
JMF | 0:2563b0415d1f | 19 | * software without specific prior written permission. |
JMF | 0:2563b0415d1f | 20 | * |
JMF | 0:2563b0415d1f | 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
JMF | 0:2563b0415d1f | 22 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
JMF | 0:2563b0415d1f | 23 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
JMF | 0:2563b0415d1f | 24 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
JMF | 0:2563b0415d1f | 25 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
JMF | 0:2563b0415d1f | 26 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
JMF | 0:2563b0415d1f | 27 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
JMF | 0:2563b0415d1f | 28 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
JMF | 0:2563b0415d1f | 29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
JMF | 0:2563b0415d1f | 30 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
JMF | 0:2563b0415d1f | 31 | */ |
JMF | 0:2563b0415d1f | 32 | |
JMF | 0:2563b0415d1f | 33 | #ifndef __XCVR_SPI_H__ |
JMF | 0:2563b0415d1f | 34 | #define __XCVR_SPI_H__ |
JMF | 0:2563b0415d1f | 35 | |
JMF | 0:2563b0415d1f | 36 | |
JMF | 0:2563b0415d1f | 37 | /***************************************************************************** |
JMF | 0:2563b0415d1f | 38 | * INCLUDED HEADERS * |
JMF | 0:2563b0415d1f | 39 | *---------------------------------------------------------------------------* |
JMF | 0:2563b0415d1f | 40 | * Add to this section all the headers that this module needs to include. * |
JMF | 0:2563b0415d1f | 41 | * Note that it is not a good practice to include header files into header * |
JMF | 0:2563b0415d1f | 42 | * files, so use this section only if there is no other better solution. * |
JMF | 0:2563b0415d1f | 43 | *---------------------------------------------------------------------------* |
JMF | 0:2563b0415d1f | 44 | *****************************************************************************/ |
JMF | 0:2563b0415d1f | 45 | |
JMF | 0:2563b0415d1f | 46 | |
JMF | 0:2563b0415d1f | 47 | /***************************************************************************** |
JMF | 0:2563b0415d1f | 48 | * PUBLIC MACROS * |
JMF | 0:2563b0415d1f | 49 | *---------------------------------------------------------------------------* |
JMF | 0:2563b0415d1f | 50 | * Add to this section all the access macros, registers mappings, bit access * |
JMF | 0:2563b0415d1f | 51 | * macros, masks, flags etc ... |
JMF | 0:2563b0415d1f | 52 | *---------------------------------------------------------------------------* |
JMF | 0:2563b0415d1f | 53 | *****************************************************************************/ |
JMF | 0:2563b0415d1f | 54 | #define gXcvrSpiInstance_c 0 |
JMF | 0:2563b0415d1f | 55 | |
JMF | 0:2563b0415d1f | 56 | /***************************************************************************** |
JMF | 0:2563b0415d1f | 57 | * PUBLIC FUNCTIONS * |
JMF | 0:2563b0415d1f | 58 | *---------------------------------------------------------------------------* |
JMF | 0:2563b0415d1f | 59 | * Add to this section all the global functions prototype preceded (as a * |
JMF | 0:2563b0415d1f | 60 | * good practice) by the keyword 'extern' * |
JMF | 0:2563b0415d1f | 61 | *---------------------------------------------------------------------------* |
JMF | 0:2563b0415d1f | 62 | *****************************************************************************/ |
JMF | 0:2563b0415d1f | 63 | |
JMF | 0:2563b0415d1f | 64 | #if defined(__cplusplus) |
JMF | 0:2563b0415d1f | 65 | extern "C" { |
JMF | 0:2563b0415d1f | 66 | #endif /* __cplusplus */ |
JMF | 0:2563b0415d1f | 67 | |
JMF | 0:2563b0415d1f | 68 | void RF_RST_Set(int state); |
JMF | 0:2563b0415d1f | 69 | void RF_CS_Set(int state); |
JMF | 0:2563b0415d1f | 70 | void RF_IRQ_Init(void); |
JMF | 0:2563b0415d1f | 71 | void RF_IRQ_Disable(void); |
JMF | 0:2563b0415d1f | 72 | void RF_IRQ_Enable(void); |
JMF | 0:2563b0415d1f | 73 | uint8_t RF_isIRQ_Pending(void); |
JMF | 0:2563b0415d1f | 74 | |
JMF | 0:2563b0415d1f | 75 | void gXcvrAssertCS_d(void); |
JMF | 0:2563b0415d1f | 76 | void gXcvrDeassertCS_d(void); |
JMF | 0:2563b0415d1f | 77 | |
JMF | 0:2563b0415d1f | 78 | void xcvr_spi_init(uint32_t instance); |
JMF | 0:2563b0415d1f | 79 | void xcvr_spi_configure_speed(uint32_t instance, uint32_t freq); |
JMF | 0:2563b0415d1f | 80 | void xcvr_spi_transfer(uint32_t instance, |
JMF | 0:2563b0415d1f | 81 | uint8_t * sendBuffer, |
JMF | 0:2563b0415d1f | 82 | uint8_t * receiveBuffer, |
JMF | 0:2563b0415d1f | 83 | uint32_t transferByteCount); |
JMF | 0:2563b0415d1f | 84 | |
JMF | 0:2563b0415d1f | 85 | #if defined(__cplusplus) |
JMF | 0:2563b0415d1f | 86 | } |
JMF | 0:2563b0415d1f | 87 | #endif /* __cplusplus */ |
JMF | 0:2563b0415d1f | 88 | |
JMF | 0:2563b0415d1f | 89 | #endif /* __XCVR_SPI_H__ */ |