summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdEd.h
blob: 9cd339f74634a41420d5d92697ead320c65e52ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**************************************************************************//**
  \file machwdEd.h
  
  \brief MACHWD energy detection types and function prototypes.
  
  \author
    Atmel Corporation: http://www.atmel.com \n
    Support email: avr@atmel.com

  Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
  Licensed under Atmel's Limited License Agreement (BitCloudTM).
  
  \internal
    History:     
      24/05/07 A. Mandychev - Created.
******************************************************************************/

#ifndef _MACHWDED_H
#define _MACHWDED_H

/******************************************************************************
                    Includes section
******************************************************************************/
#include <machwdService.h>

/******************************************************************************
                    Define(s) section
******************************************************************************/

/******************************************************************************
                    Types section
******************************************************************************/
//! MACHWD energy detection confirm structure.
typedef struct
{
  PHY_EnergyLevel_t energyLevel;
} MACHWD_EdConf_t;

//! MACHWD energy detection request structure.
typedef struct
{
  MACHWD_Service_t service;
  // Callback pointer.
  void (*MACHWD_EdConf)(MACHWD_EdConf_t *confParams);
  // Confirm parameters.
  MACHWD_EdConf_t confirm;
} MACHWD_EdReq_t;

/******************************************************************************
                    Prototypes section
******************************************************************************/
/**************************************************************************//**
  \brief Detects energy level on channel.
  \param reqParams - MACHWD energy detection request structure pointer.
  \return none.
******************************************************************************/
void MACHWD_EdReq(MACHWD_EdReq_t *reqParams);

#endif /* _MACHWDED_H */

// eof machwdEd.h