imx-test-3.0.35-4.1.0/include/dptc_daemon.h File Reference

DPTC daemon program header file. More...

Data Structures

struct  connection_param_s
struct  command_msg_s
struct  return_values_s

Defines

#define DEFAULT_PORT_NUMBER   3532
#define BACKLOG   10
#define MAX_NUM_OF_FREQS   50
#define MAX_NUM_OF_WP   50
#define INVALED_VALUE_ERR   -1
#define DRIVER_ACCESS_ERR   -2
#define INVLID_DRIVER_VALS_ERR   -3
#define MEM_ALLOC_ERR   -4

Typedefs

typedef unsigned int u32

Enumerations

enum  cmd_type_e {
  ENABLE_DPTC = 0,
  DISABLE_DPTC,
  WRITE_TABLE,
  READ_TABLE,
  SET_FREQ,
  GET_FREQ,
  GET_STATE,
  GET_LOG,
  QUIT,
  ACK = 98,
  NACK = 99
}

Detailed Description

DPTC daemon program header file.


Define Documentation

#define BACKLOG   10

Number of message backlog allowed in the socket communication.

#define DEFAULT_PORT_NUMBER   3532

Default port number used for daemon, human interface communication.

#define DRIVER_ACCESS_ERR   -2

Error while accessing the DPTC driver.

#define INVALED_VALUE_ERR   -1

Daemon has received an invalid value.

#define INVLID_DRIVER_VALS_ERR   -3

Invalid values received from the DPTC driver.

#define MAX_NUM_OF_FREQS   50

Maximum number of frequencies allowd in the DPTC translation table.

#define MAX_NUM_OF_WP   50

Maximum number of workin points allowd in the DPTC translation table.

#define MEM_ALLOC_ERR   -4

Erorr Allocating memory.


Typedef Documentation

typedef unsigned int u32

Defines a 32 bit unsigened integer


Enumeration Type Documentation

enum cmd_type_e

This enum defines the type of command/responce messages possible in the communication between the daemon and the human interface program.

Enumerator:
ENABLE_DPTC 

Enable DPTC operation command message.

DISABLE_DPTC 

Disable DPTC operation command message.

WRITE_TABLE 

Update DPTC translation table command message.

READ_TABLE 

Read DPTC translation table from driver command message.

SET_FREQ 

Set frequency index used by DPTC driver command message.

GET_FREQ 

Get frequency index used by DPTC driver command message.

GET_STATE 

Get current DPTC module state (Enabled/Disabled) command message.

GET_LOG 

Get DPTC driver log entries command message.

QUIT 

End communication command message.

ACK 

Acknowledge message.

NACK 

Not Acknowledge message.

footer
©  Freescale Semiconductor, Inc., 2007.  All rights reserved.
Freescale Confidential Proprietary
NDA Required
doxygen