ConOpSys V2970  P004.07
ANVILEX control operating system
SPI2_P014_51_CB.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 //! @file SPI2_P014_51_CB.h
3 //! @brief Control board P015.27 CB STM32F429 on-chip SPI2 hardware driver header file.
4 //! @attention No special attention requered.
5 //! @copyright (C) 2015-2020 ANVILEX LLC
6 //! $HeadURL: https://192.168.3.4:8443/svn/P004_07/ConOpSys/Hardware/P015_09_V1_0/CAN1_P015_09_CB.h $
7 //! $Revision: 2262 $
8 //! $Date: 2020-12-05 07:20:48 +0500 (Sa, 05 Dez 2020) $
9 //! $Author: minch $
10 //------------------------------------------------------------------------------
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are met:
14 //
15 // 1. Redistributions of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of ANVILEX nor the names of its contributors may be
23 // used to endorse or promote products derived from this software without
24 // specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
30 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 // POSSIBILITY OF SUCH DAMAGE.
37 //
38 //------------------------------------------------------------------------------
39 
40 //------------------------------------------------------------------------------
41 // Protecting header files from mutual, recursive inclusion.
42 //------------------------------------------------------------------------------
43 
44 #pragma once
45 
46 //------------------------------------------------------------------------------
47 // Include project files
48 //------------------------------------------------------------------------------
49 
50 #include "SPI2_STM32F429.h"
51 
52 //------------------------------------------------------------------------------
53 // Class definitions
54 //------------------------------------------------------------------------------
55 
56 //! @brief On chip SPI2 bus master unit class
58 {
59 
60  //----------------------------------------------------------------------------
61  // Public defines, methods and variables
62  //----------------------------------------------------------------------------
63 
64  public:
65 
66  //--------------------------------------------------------------------------
67  // Public methods
68  //--------------------------------------------------------------------------
69 
70  //!-------------------------------------------------------------------------
71  //! @brief Class constructor method
72  //! @note None
73  //! \par Override
74  //! Not allowed
75  //! @attention Don't call this method directly.
76  //--------------------------------------------------------------------------
77 
79 
80  //!-------------------------------------------------------------------------
81  //! @brief Class destructor method
82  //! @note None
83  //! \par Override
84  //! Not allowed
85  //! @attention Don't call this method directly.
86  //--------------------------------------------------------------------------
87 
88  virtual ~TSPI2_P014_51_CB();
89 
90  //!-------------------------------------------------------------------------
91  //! @brief PIO initialisation method
92  //! @note None
93  //! @return None
94  //! \par Override
95  //! Not allowed
96  //! @attention None
97  //--------------------------------------------------------------------------
98 
99  virtual VOID PIO_Init();
100 
101  //!-------------------------------------------------------------------------
102  //! @brief PIO reinitialisation as GPIO method
103  //! @note None
104  //! @return None
105  //! \par Override
106  //! Not allowed
107  //! @attention None
108  //--------------------------------------------------------------------------
109 
110  virtual VOID PIO_Done();
111  //!-------------------------------------------------------------------------
112  //! @brief Activate (set to 0) SPI bus chip select signal
113  //! @note None
114  //! @return None
115  //! \par Override
116  //! Not allowed
117  //! @attention None
118  //--------------------------------------------------------------------------
119 
120  virtual VOID CS_Activate();
121 
122  //!-------------------------------------------------------------------------
123  //! @brief Deactivate (set to 1) SPI bus chip select signal
124  //! @note None
125  //! @return None
126  //! \par Override
127  //! Not allowed
128  //! @attention None
129  //--------------------------------------------------------------------------
130 
131  virtual VOID CS_Deactivate();
132 
133  //----------------------------------------------------------------------------
134  // Protected defines, methods and variables
135  //----------------------------------------------------------------------------
136 
137  protected:
138 
139  //----------------------------------------------------------------------------
140  // Private defines, methods and variables
141  //----------------------------------------------------------------------------
142 
143  private:
144 
145 };
146 
147 //------------------------------------------------------------------------------
148 // End of file
149 //------------------------------------------------------------------------------
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
STM32F429 on-chip SPI2 bus master module class header file.
On chip SPI2 bus master unit class.
Definition: SPI2_P014_51_CB.h:58
virtual ~TSPI2_P014_51_CB()
Class destructor method.
Definition: SPI2_P014_51_CB.cpp:78
virtual VOID PIO_Done()
PIO reinitialisation as GPIO method.
Definition: SPI2_P014_51_CB.cpp:154
virtual VOID CS_Activate()
Activate (set to 0) SPI bus chip select signal.
Definition: SPI2_P014_51_CB.cpp:201
TSPI2_P014_51_CB()
Class constructor method.
Definition: SPI2_P014_51_CB.cpp:70
virtual VOID PIO_Init()
PIO initialisation method.
Definition: SPI2_P014_51_CB.cpp:86
virtual VOID CS_Deactivate()
Deactivate (set to 1) SPI bus chip select signal.
Definition: SPI2_P014_51_CB.cpp:218
STM32F429 on-chip SPI2 bus master module class.
Definition: SPI2_STM32F429.h:54