Version of easy-connect with the u-blox cellular platforms C027 and C030 added.

Dependents:   HelloMQTT

Committer:
RobMeades
Date:
Fri Nov 03 13:01:23 2017 +0000
Revision:
6:304d3ba87a01
Parent:
0:19aa55d66228
Add comment concerning N2XX baud rate.

Who changed what in which revision?

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