Easily add all supported connectivity methods to your mbed OS project
stm-spirit1-rf-driver/source/libs/spirit1/SPIRIT1_Library/Src/SPIRIT_Commands.c@0:615f90842ce8, 2017-07-12 (annotated)
- Committer:
- MACRUM
- Date:
- Wed Jul 12 10:52:58 2017 +0000
- Revision:
- 0:615f90842ce8
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MACRUM | 0:615f90842ce8 | 1 | /** |
MACRUM | 0:615f90842ce8 | 2 | ****************************************************************************** |
MACRUM | 0:615f90842ce8 | 3 | * @file SPIRIT_Commands.c |
MACRUM | 0:615f90842ce8 | 4 | * @author VMA division - AMS |
MACRUM | 0:615f90842ce8 | 5 | * @version 3.2.2 |
MACRUM | 0:615f90842ce8 | 6 | * @date 08-July-2015 |
MACRUM | 0:615f90842ce8 | 7 | * @brief Management of SPIRIT Commands. |
MACRUM | 0:615f90842ce8 | 8 | * |
MACRUM | 0:615f90842ce8 | 9 | * @attention |
MACRUM | 0:615f90842ce8 | 10 | * |
MACRUM | 0:615f90842ce8 | 11 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
MACRUM | 0:615f90842ce8 | 12 | * |
MACRUM | 0:615f90842ce8 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
MACRUM | 0:615f90842ce8 | 14 | * are permitted provided that the following conditions are met: |
MACRUM | 0:615f90842ce8 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
MACRUM | 0:615f90842ce8 | 16 | * this list of conditions and the following disclaimer. |
MACRUM | 0:615f90842ce8 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
MACRUM | 0:615f90842ce8 | 18 | * this list of conditions and the following disclaimer in the documentation |
MACRUM | 0:615f90842ce8 | 19 | * and/or other materials provided with the distribution. |
MACRUM | 0:615f90842ce8 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
MACRUM | 0:615f90842ce8 | 21 | * may be used to endorse or promote products derived from this software |
MACRUM | 0:615f90842ce8 | 22 | * without specific prior written permission. |
MACRUM | 0:615f90842ce8 | 23 | * |
MACRUM | 0:615f90842ce8 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
MACRUM | 0:615f90842ce8 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
MACRUM | 0:615f90842ce8 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
MACRUM | 0:615f90842ce8 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
MACRUM | 0:615f90842ce8 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
MACRUM | 0:615f90842ce8 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
MACRUM | 0:615f90842ce8 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
MACRUM | 0:615f90842ce8 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
MACRUM | 0:615f90842ce8 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
MACRUM | 0:615f90842ce8 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
MACRUM | 0:615f90842ce8 | 34 | * |
MACRUM | 0:615f90842ce8 | 35 | ****************************************************************************** |
MACRUM | 0:615f90842ce8 | 36 | */ |
MACRUM | 0:615f90842ce8 | 37 | |
MACRUM | 0:615f90842ce8 | 38 | /* Includes ------------------------------------------------------------------*/ |
MACRUM | 0:615f90842ce8 | 39 | #include "SPIRIT_Commands.h" |
MACRUM | 0:615f90842ce8 | 40 | #include "MCU_Interface.h" |
MACRUM | 0:615f90842ce8 | 41 | |
MACRUM | 0:615f90842ce8 | 42 | |
MACRUM | 0:615f90842ce8 | 43 | |
MACRUM | 0:615f90842ce8 | 44 | |
MACRUM | 0:615f90842ce8 | 45 | /** |
MACRUM | 0:615f90842ce8 | 46 | * @addtogroup SPIRIT_Libraries |
MACRUM | 0:615f90842ce8 | 47 | * @{ |
MACRUM | 0:615f90842ce8 | 48 | */ |
MACRUM | 0:615f90842ce8 | 49 | |
MACRUM | 0:615f90842ce8 | 50 | |
MACRUM | 0:615f90842ce8 | 51 | /** |
MACRUM | 0:615f90842ce8 | 52 | * @addtogroup SPIRIT_Commands |
MACRUM | 0:615f90842ce8 | 53 | * @{ |
MACRUM | 0:615f90842ce8 | 54 | */ |
MACRUM | 0:615f90842ce8 | 55 | |
MACRUM | 0:615f90842ce8 | 56 | |
MACRUM | 0:615f90842ce8 | 57 | /** |
MACRUM | 0:615f90842ce8 | 58 | * @defgroup Commands_Private_TypesDefinitions Commands Private TypesDefinitions |
MACRUM | 0:615f90842ce8 | 59 | * @{ |
MACRUM | 0:615f90842ce8 | 60 | */ |
MACRUM | 0:615f90842ce8 | 61 | |
MACRUM | 0:615f90842ce8 | 62 | /** |
MACRUM | 0:615f90842ce8 | 63 | *@} |
MACRUM | 0:615f90842ce8 | 64 | */ |
MACRUM | 0:615f90842ce8 | 65 | |
MACRUM | 0:615f90842ce8 | 66 | |
MACRUM | 0:615f90842ce8 | 67 | /** |
MACRUM | 0:615f90842ce8 | 68 | * @defgroup Commands_Private_Defines Commands Private Defines |
MACRUM | 0:615f90842ce8 | 69 | * @{ |
MACRUM | 0:615f90842ce8 | 70 | */ |
MACRUM | 0:615f90842ce8 | 71 | |
MACRUM | 0:615f90842ce8 | 72 | /** |
MACRUM | 0:615f90842ce8 | 73 | *@} |
MACRUM | 0:615f90842ce8 | 74 | */ |
MACRUM | 0:615f90842ce8 | 75 | |
MACRUM | 0:615f90842ce8 | 76 | /** |
MACRUM | 0:615f90842ce8 | 77 | * @defgroup Commands_Private_Macros Commands Private Macros |
MACRUM | 0:615f90842ce8 | 78 | * @{ |
MACRUM | 0:615f90842ce8 | 79 | */ |
MACRUM | 0:615f90842ce8 | 80 | |
MACRUM | 0:615f90842ce8 | 81 | /** |
MACRUM | 0:615f90842ce8 | 82 | *@} |
MACRUM | 0:615f90842ce8 | 83 | */ |
MACRUM | 0:615f90842ce8 | 84 | |
MACRUM | 0:615f90842ce8 | 85 | |
MACRUM | 0:615f90842ce8 | 86 | /** |
MACRUM | 0:615f90842ce8 | 87 | * @defgroup Commands_Private_Variables Commands Private Variables |
MACRUM | 0:615f90842ce8 | 88 | * @{ |
MACRUM | 0:615f90842ce8 | 89 | */ |
MACRUM | 0:615f90842ce8 | 90 | |
MACRUM | 0:615f90842ce8 | 91 | /** |
MACRUM | 0:615f90842ce8 | 92 | *@} |
MACRUM | 0:615f90842ce8 | 93 | */ |
MACRUM | 0:615f90842ce8 | 94 | |
MACRUM | 0:615f90842ce8 | 95 | |
MACRUM | 0:615f90842ce8 | 96 | |
MACRUM | 0:615f90842ce8 | 97 | /** |
MACRUM | 0:615f90842ce8 | 98 | * @defgroup Commands_Private_FunctionPrototypes Commands Private Function Prototypes |
MACRUM | 0:615f90842ce8 | 99 | * @{ |
MACRUM | 0:615f90842ce8 | 100 | */ |
MACRUM | 0:615f90842ce8 | 101 | |
MACRUM | 0:615f90842ce8 | 102 | /** |
MACRUM | 0:615f90842ce8 | 103 | *@} |
MACRUM | 0:615f90842ce8 | 104 | */ |
MACRUM | 0:615f90842ce8 | 105 | |
MACRUM | 0:615f90842ce8 | 106 | |
MACRUM | 0:615f90842ce8 | 107 | /** |
MACRUM | 0:615f90842ce8 | 108 | * @defgroup Commands_Private_Functions Commands Private Functions |
MACRUM | 0:615f90842ce8 | 109 | * @{ |
MACRUM | 0:615f90842ce8 | 110 | */ |
MACRUM | 0:615f90842ce8 | 111 | |
MACRUM | 0:615f90842ce8 | 112 | /** |
MACRUM | 0:615f90842ce8 | 113 | * @brief Sends a specific command to SPIRIT. |
MACRUM | 0:615f90842ce8 | 114 | * @param xCommandCode code of the command to send. |
MACRUM | 0:615f90842ce8 | 115 | This parameter can be any value of @ref SpiritCmd. |
MACRUM | 0:615f90842ce8 | 116 | * @retval None. |
MACRUM | 0:615f90842ce8 | 117 | */ |
MACRUM | 0:615f90842ce8 | 118 | void SpiritCmdStrobeCommand(SpiritCmd xCommandCode) |
MACRUM | 0:615f90842ce8 | 119 | { |
MACRUM | 0:615f90842ce8 | 120 | /* Check the parameters */ |
MACRUM | 0:615f90842ce8 | 121 | s_assert_param(IS_SPIRIT_CMD(xCommandCode)); |
MACRUM | 0:615f90842ce8 | 122 | |
MACRUM | 0:615f90842ce8 | 123 | g_xStatus = SpiritSpiCommandStrobes((uint8_t) xCommandCode); |
MACRUM | 0:615f90842ce8 | 124 | } |
MACRUM | 0:615f90842ce8 | 125 | |
MACRUM | 0:615f90842ce8 | 126 | |
MACRUM | 0:615f90842ce8 | 127 | /** |
MACRUM | 0:615f90842ce8 | 128 | *@} |
MACRUM | 0:615f90842ce8 | 129 | */ |
MACRUM | 0:615f90842ce8 | 130 | |
MACRUM | 0:615f90842ce8 | 131 | |
MACRUM | 0:615f90842ce8 | 132 | /** |
MACRUM | 0:615f90842ce8 | 133 | *@} |
MACRUM | 0:615f90842ce8 | 134 | */ |
MACRUM | 0:615f90842ce8 | 135 | |
MACRUM | 0:615f90842ce8 | 136 | |
MACRUM | 0:615f90842ce8 | 137 | /** |
MACRUM | 0:615f90842ce8 | 138 | *@} |
MACRUM | 0:615f90842ce8 | 139 | */ |
MACRUM | 0:615f90842ce8 | 140 | |
MACRUM | 0:615f90842ce8 | 141 | |
MACRUM | 0:615f90842ce8 | 142 | |
MACRUM | 0:615f90842ce8 | 143 | |
MACRUM | 0:615f90842ce8 | 144 | /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/ |