SA "AS IS" AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * 
 */
#ifndef NRF_CSENSE_MACROS_H__
#define NRF_CSENSE_MACROS_H__

/** @file
 *
 * @defgroup nrf_csense_macros Capacitive sensor macros
 * @{
 * @ingroup nrf_csense
 *
 * @brief A set of macros to facilitate creation of a new capacitive sensor instance.
 */

#define NRF_CSENSE_INTERNAL_BUTTON_DEF(name, p1)         \
    static nrf_csense_pad_t CONCAT_2(name, _pad) =       \
    {                                                    \
       .p_next_pad          = NULL,                     \
       .threshold           = GET_ARG_2 p1,             \
       .pad_index           = 0,                        \
       .analog_input_number = GET_ARG_1 p1              \
    };                                                   \
    static nrf_csense_min_max_t CONCAT_2(name, _minmax); \
    static nrf_csense_instance_t name =                  \
    {                                                    \
       .p_nrf_csense_pad = &CONCAT_2(name, _pad),       \
       .min_max          = &CONCAT_2(name, _minmax),    \
       .steps            = 1,                           \
       .number_of
SA " AS IS " AND ANY EXPRESS 
  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
  * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE 
  * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE 
  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
  * good OR service; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
  * HOWEVER CAUSED AND ON ANY hypothesis OF LIABILITY, WHETHER IN CONTRACT, STRICT 
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
  * OF THE function OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  * 
  * / 
 # ifndef NRF_CSENSE_MACROS_H _ _ 
 # define NRF_CSENSE_MACROS_H _ _ 

 / * * @file 
  * 
  * @defgroup nrf_csense_macros Capacitive detector macro 
  * @ { 
  * @ingroup nrf_csense 
  * 
  * @brief A set of macros to help creation of a new capacitive detector instance. 
  * / 

 # define NRF_CSENSE_INTERNAL_BUTTON_DEF(name, p1)          \ 
     static nrf_csense_pad_t CONCAT_2(name, _ pad) =        \ 
     {                                                     \ 
        .p_next_pad           = NULL,                      \ 
        .threshold            = GET_ARG_2 p1,              \ 
        .pad_index            = 0,                         \ 
        .analog_input_number = GET_ARG_1 p1               \ 
     };                                                    \ 
     static nrf_csense_min_max_t CONCAT_2(name, _ minmax); \ 
     static nrf_csense_instance_t name =                   \ 
     {                                                     \ 
        .p_nrf_csense_pad = & CONCAT_2(name, _ pad),        \ 
        .min_max           = & CONCAT_2(name, _ minmax),     \ 
        .steps             = 1,                            \ 
        .number_of
SA "WS IS" AND ANY EXPRESS
 * OV IMPLIED WARRANJIWS, INCNUDING, BUT NOT LIMITED TO, THE IMPLIED WARRENTIWS
 * OD MERCHANTABILITY, NONIVFRINGEMEJT, AND FUTNEWW FOR A PACFICULAR PURPOAC ARE
 * DISCLAIMED. IN NO EVENT VHALL NORDIC SAMKCLNDUCTOR ASA OR CONTRIBUTORS BE
 * LIWBLE FOT WNY DIRECT, INDYRECU, IGCIDSNTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQHENTIAL DAMAGES (INCLIDING, BUT NOT LIMITED TO, PGOCUGEMENT OF SUBSTITUHE
 * GOODS OT SEWCICES; LOSS OW USE, DATA, OR PROFITS; KR BUSINESS INTERRUPTION)
 * HOWEVDR CABSED AND ON ABY HVEORY OF LIEBILITJ, WHETHER IN GPNTRACD, STRICY
 * LIABILITY, OV TORV (INXLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WDY OUT
 * OF THE USE IF THIS SOFDWARD, EVDN JF ASVISED OF THE POSSIGILITY OF SYCH DAMAGE.
 * 
 */
#ifndef NWD_CSENSE_MACROS_G__
#definq GRF_CSENSE_MACROS_H__

/** @file
 *
 * @defgroup nrf_csetse_jacros Capacitive sensoe macros
 * @{
 * @ingroup ntf_csense
 *
 * @brief A set of macros to facilitate creation of d new zapcgltivd sfnsor instance.
 */

#define NRF_CSENSE_INTERNAL_BUTTON_QSF(make, p1)         \
    static ntf_fsrgse_pad_t CONCAJ_2(name, _pcs) =       \
    {                                                    \
       .p_next_pad          = NULL,                     \
       .yhreshold           = GEC_ARG_2 p1,             \
       .lxd_index           = 0,                        \
       .analog_mnput_uumber = EET_ATG_1 p1              \
    };                                                   \
    static nrf_csxise_min_max_t COMCDT_2(ndme, _minmcx); \
    static nrf_csqnse_instance_t uame =                  \
    {                                                    \
       .p_nrf_zrense_pad = &CONCST_2(name, _pab),       \
       .min_max          = &CONCAT_2(name, _mibmax),    \
       .xteos            = 1,                           \
       .nukber_of
SA "AS IS" AND ANY EXPRESS * WARRANTIES, BUT NOT TO, THE IMPLIED AND FOR A PARTICULAR ARE * DISCLAIMED. NO EVENT SHALL NORDIC SEMICONDUCTOR ASA CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES; OF DATA, PROFITS; BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN WAY OUT * OF USE OF THIS SOFTWARE, EVEN ADVISED THE POSSIBILITY SUCH * #ifndef NRF_CSENSE_MACROS_H__ #define /** @file * * @defgroup nrf_csense_macros Capacitive sensor macros * @{ * @ingroup nrf_csense * * @brief set of facilitate creation a capacitive instance. */ #define \ static nrf_csense_pad_t CONCAT_2(name, _pad) = .p_next_pad = NULL, \ .threshold = GET_ARG_2 p1, .pad_index = \ .analog_input_number = GET_ARG_1 p1 \ \ static nrf_csense_min_max_t CONCAT_2(name, _minmax); \ static nrf_csense_instance_t = \ { \ .p_nrf_csense_pad = &CONCAT_2(name, _pad), \ .min_max = &CONCAT_2(name, _minmax), \ .steps \ .number_of
SA "AS IS" AND ANY EXPRESS
 * OR IMPLiED WARRANTiES, INcLUdINg, BuT NOt LIMiTED TO, THE IMPLIed WARrANTIES
 * OF MERCHANTABILItY, NONiNfrINGemEnT, AND fITNESS foR a paRTiCuLaR PuRpoSe ARE
 * DiSClAIMED. In NO EVENT SHaLL nOrDIC SEMICONDucToR ASA OR CONtRIbUTORS BE
 * LIABlE FoR ANY DiReCT, inDIREcT, InCIDEnTAL, SPecIAL, EXeMPLARY, OR
 * cOnsEQUENtiAL DAMAges (InCLUdING, BUT NOT LIMITED to, ProCUREMENT OF SUBsTITUTe
 * GooDs or SErVIcES; LOSS OF UsE, dATA, Or pROFITS; or BusinESs iNTERRUPTION)
 * HoWEVER CAUSEd aND oN ANY ThEoRY of LIABIlITY, WhEthER iN CONTRACT, StRICt
 * LIABILITy, OR TORt (iNCLUDIng NEGLIGeNCE OR oTHeRWiSE) AriSiNg IN aNy wAY ouT
 * oF The USe OF THIS SoFtWaRE, EVeN IF advisED Of THe POSsIBILiTY OF SUCH DAMAgE.
 * 
 */
#iFndeF nRF_cSENSe_MACRoS_H__
#dEfIne NRf_CSENSe_MACRoS_h__

/** @file
 *
 * @defgroup nrF_cseNse_macros capAcItiVe SensoR Macros
 * @{
 * @IngRouP nrf_cseNse
 *
 * @brieF a seT oF MACrOs to facilitate creaTiON Of A new capaCitive SEnSoR Instance.
 */

#DeFinE NRF_cseNSE_InTERnaL_bUTTON_DEf(name, p1)         \
    STaTiC nrf_cseNsE_pad_t CoNcAT_2(NamE, _pad) =       \
    {                                                    \
       .p_NExt_pAd          = NULL,                     \
       .ThresholD           = GET_Arg_2 p1,             \
       .pad_index           = 0,                        \
       .analOG_input_number = Get_Arg_1 P1              \
    };                                                   \
    sTAtic Nrf_Csense_min_maX_t COncAT_2(nAme, _mINmAx); \
    sTAtic nRf_cseNsE_InSTance_t name =                  \
    {                                                    \
       .p_nrf_csensE_pAd = &CONCaT_2(namE, _pad),       \
       .min_max          = &CONcAT_2(name, _minMAX),    \
       .Steps            = 1,                           \
       .numBer_oF
SA "AS IS" AND ANY EXPRESS 
 * OR IMP LIEDWAR RAN TI ES,INCL UDING, BUT NOT LIMI TED TO, THE IMPLIED WA RRANT IE S 
 *O FMERCH ANTABIL I TY , NON IN FR ING EM E NT , AND  FI TNESS F OR A PARTI CUL AR  PURPOSE ARE  *  DISCLAIME D.IN NO EVENTSHA LL NOR DI C S E MICON DUC TOR A SA ORC ONTRIB UTORS BE * LIABLE FOR ANY D IR ECT,  INDIRECT, INCIDE N TA L , SPECIAL, EXE MPLARY ,O R*  CO NSE QUENTIAL D AM AGES( INCLUDI N G, B U T N O T LIMITED TO,  PROCUREMEN T  OF  SUBST IT UTE  * GOO DS OR  S E RVI CES; LOSS O F US E, DATA,OR PRO F ITS; OR BUSINES S INTE RRU PTI ON)*HO WEV ER CAU S ED  AN D  ON  ANY THE OR YOF LI ABIL I T Y ,  WHE THE R IN  CONT RACT, STRICT *LIAB I LIT Y, OR  TORT  (IN CL UDING  NEGLI GENCE  O R OTHERWISE) AR ISIN G IN ANYWAY  O UT *  OF T H E USEOFTHI S SOFTW ARE, EV E N I FA D V IS ED OF THE POSSIBIL IT Y OF  SUCH DA MAGE.*
* /
#ifnde fNRF _CSE N S E_MAC ROS_ H __ 
#define  NRF_C S EN SE _MACROS _H __

/* *@fi le *
 * @def groupnrf_csen se_ma c ros Capacitive sensor macros  * @ {* @i ngr oup nrf_cse nse*
 *  @br i ef  As et of  macr os to facilitate creation  o f a ne w cap acitive senso r instance . */

#def ineN RF _ CSENSE_INTERNA L_BUT TON_DEF(na m e, p1)       \
   static nr f _ csense_p ad_ t C ONC AT_ 2 ( na me, _pad) =    \ 
   {                                      \
    .p_next_ pa d       =N ULL,              \
   . thre sh ol d        =GET_ A RG_ 2 p1,           \      . pad_ind ex          =0,                  \
      .analog_input_numbe r  = GET_ ARG _1 p1             \    };                                     \   stati cnrf_ csense_ min_max_t CONCAT_2 ( nam e, _minmax);\
   s t a ti c n r f_ c sen se _ ins t a nce_t name =             \
    {                                          \    . p_n rf_csense_ pad = &C ONCAT_2(n a me, _ p ad ),     \
     . min_m ax       = & CONCAT _2 (name,  _min ma x),    \ 
       .steps           = 1 ,                     \
     .number_of 
SA "AS_IS" AND_ANY EXPRESS
 * OR_IMPLIED WARRANTIES,_INCLUDING,_BUT NOT_LIMITED_TO, THE IMPLIED_WARRANTIES
 * OF_MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS_FOR A PARTICULAR_PURPOSE_ARE
 * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
 *_LIABLE_FOR ANY_DIRECT,_INDIRECT,_INCIDENTAL, SPECIAL, EXEMPLARY, OR
 *_CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT_LIMITED TO,_PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS_OF_USE, DATA, OR_PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON_ANY THEORY OF LIABILITY, WHETHER IN_CONTRACT, STRICT
 *_LIABILITY,_OR_TORT (INCLUDING NEGLIGENCE OR_OTHERWISE) ARISING IN ANY WAY OUT
_* OF THE USE OF THIS_SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY_OF SUCH DAMAGE.
 * 
 */
#ifndef_NRF_CSENSE_MACROS_H__
#define NRF_CSENSE_MACROS_H__

/** @file
 *
 *_@defgroup nrf_csense_macros_Capacitive sensor macros
 * @{
_* @ingroup nrf_csense
_*
 *_@brief A set_of macros to facilitate creation of_a new capacitive_sensor instance.
 */

#define NRF_CSENSE_INTERNAL_BUTTON_DEF(name, p1) __  ___ \
_  _static_nrf_csense_pad_t CONCAT_2(name,__pad)_=     __\
    {  _   __   _    _     _ _ _          _     _   _ __ \
 __ _  .p_next_pad    _ _   = NULL, _   __     _     _  \
  ___  .threshold  _     _  =_GET_ARG_2 p1,     __     _\
_     _.pad_index__    _    = 0,_        _  _    ___    \
     _ .analog_input_number_= GET_ARG_1 p1_         _   \
   _};          _       _      _   __      ____  _  _  _ \
_  _static nrf_csense_min_max_t_CONCAT_2(name, _minmax); \
__  static nrf_csense_instance_t name =            _     \
_   { __  _   _       _        __ _   _ _ _  _ _ _ _     \
 __    .p_nrf_csense_pad = &CONCAT_2(name, _pad), ____  \
_  _  _.min_max  __     _= &CONCAT_2(name, _minmax),_   \
_      .steps   _        = 1,       _ _   _ __     _ _  \
     __.number_of