summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWD_PHY/include/machwdSetTrx.h
blob: 7c0ac92ce1a32ef1b71e7bb1ce4cfd31111e6c2c (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
62
63
64
65
/**************************************************************************//**
  \file machwdSetTrx.h
  
  \brief MACHWD transcivier control 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:     
      26/09/07 A. Mandychev - Created.
******************************************************************************/

#ifndef _MACHWDSETTRX_H
#define _MACHWDSETTRX_H

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

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

/******************************************************************************
                    Types section
******************************************************************************/
//! Set of commands to control radio transcivier.
typedef enum
{
  MACHWD_TX_ON_CMD,
  MACHWD_RX_ON_CMD,
  MACHWD_TRX_OFF_CMD,
} MACHWD_TrxCmd_t;

//! Set TRX state request structure.
typedef struct
{
  //! Service field - for internal needs.
  MACHWD_Service_t         service;
  //! Command to chnage the trancivier current state.
  MACHWD_TrxCmd_t          trxCmd;
  // MACHWD set trx state confirm callback function's pointer.
  void (*MACHWD_SetTrxStateConf)(void);
} MACHWD_SetTrxStateReq_t;

/******************************************************************************
                    Prototypes section
******************************************************************************/
/**************************************************************************//**
  \brief Set trx state.
  \param reqParams - MACHWD set trx state request structure pointer.
  \return none.
******************************************************************************/
void MACHWD_SetTrxStateReq(MACHWD_SetTrxStateReq_t *reqParams);

#endif /* _MACHWDSETTRX_H */

// eof machwdSetTrx.h