Zniffer#

Modules#

_transport_t

comm_interface_frame_ptr

tx_cmd_frame_t

tx_data_frame_t

tx_beam_start_frame_t

tx_beam_stop_frame_t

Enumerations#

enum
TRANSPORT_TYPE_UART
TRANSPORT_TYPE_SPI
TRANSPORT_TYPE_ETHERNET
TRANSPORT_TYPE_UART
TRANSPORT_TYPE_SPI
TRANSPORT_TYPE_ETHERNET
}
enum
PARSE_IDLE
PARSE_FRAME_RECEIVED
PARSE_FRAME_SENT
PARSE_FRAME_ERROR
PARSE_RX_TIMEOUT
PARSE_TX_TIMEOUT
PARSE_IDLE
PARSE_FRAME_RECEIVED
PARSE_FRAME_SENT
PARSE_FRAME_ERROR
PARSE_RX_TIMEOUT
PARSE_TX_TIMEOUT
}

Typedefs#

typedef void *
typedef void(*
transmit_done_cb_t)(transport_handle_t transport)

Functions#

uint8_t
frame_payload_len(const comm_interface_frame_ptr frame)
void
comm_interface_transmit_frame(uint8_t cmd, uint8_t type, const uint8_t *payload, uint8_t len, transmit_done_cb_t cb)

Macros#

#define
SOF '#'
#define
SODF '!'
#define
SODM 0x3
#define
SOWU 0x2
#define
#define
#define
#define
#define

Enumeration Documentation#

transport_type_t#

transport_type_t
Enumerator
TRANSPORT_TYPE_UART
TRANSPORT_TYPE_SPI
TRANSPORT_TYPE_ETHERNET
TRANSPORT_TYPE_UART
TRANSPORT_TYPE_SPI
TRANSPORT_TYPE_ETHERNET

Definition at line 32 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

comm_interface_parse_result_t#

comm_interface_parse_result_t
Enumerator
PARSE_IDLE
PARSE_FRAME_RECEIVED
PARSE_FRAME_SENT
PARSE_FRAME_ERROR
PARSE_RX_TIMEOUT
PARSE_TX_TIMEOUT
PARSE_IDLE
PARSE_FRAME_RECEIVED
PARSE_FRAME_SENT
PARSE_FRAME_ERROR
PARSE_RX_TIMEOUT
PARSE_TX_TIMEOUT

Definition at line 39 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

Typedef Documentation#

transport_handle_t#

typedef void* transport_handle_t

Definition at line 49 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

transmit_done_cb_t#

typedef void(* transmit_done_cb_t) (transport_handle_t transport) )(transport_handle_t transport)

Definition at line 51 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

transport_t#

typedef struct _transport_t transport_t

Definition at line 57 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

Variable Documentation#

serial_frame#

comm_interface_frame_ptr const serial_frame

Definition at line 67 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

Function Documentation#

frame_payload_len#

static uint8_t frame_payload_len (const comm_interface_frame_ptr frame)
Parameters
N/Aframe

Definition at line 114 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

comm_interface_transmit_frame#

void comm_interface_transmit_frame (uint8_t cmd, uint8_t type, const uint8_t * payload, uint8_t len, transmit_done_cb_t cb)
Parameters
N/Acmd
N/Atype
N/Apayload
N/Alen
N/Acb

Definition at line 119 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

comm_interface_wait_transmit_done#

void comm_interface_wait_transmit_done (void )
Parameters
N/A

Definition at line 120 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

comm_interface_init#

void comm_interface_init (void )
Parameters
N/A

Definition at line 121 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

comm_interface_get_byte_timeout_ms#

uint32_t comm_interface_get_byte_timeout_ms (void )
Parameters
N/A

Definition at line 122 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

comm_interface_set_byte_timeout_ms#

void comm_interface_set_byte_timeout_ms (uint32_t t)
Parameters
N/At

Definition at line 123 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

comm_interface_parse_data#

comm_interface_parse_result_t comm_interface_parse_data ()

Definition at line 124 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

Macro Definition Documentation#

SOF#

#define SOF
Value:
'#'

Definition at line 18 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

SODF#

#define SODF
Value:
'!'

Definition at line 19 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

SODM#

#define SODM
Value:
0x3

Definition at line 20 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

SOWU#

#define SOWU
Value:
0x2

Definition at line 21 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

CMD_FRAME#

#define CMD_FRAME
Value:
0x00

Definition at line 23 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

DATA_FRAME#

#define DATA_FRAME
Value:
0x01

Definition at line 24 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

BEAM_FRAME#

#define BEAM_FRAME
Value:
0x02

Definition at line 25 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

BEAM_START#

#define BEAM_START
Value:
0x04

Definition at line 27 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

BEAM_STOP#

#define BEAM_STOP
Value:
0x05

Definition at line 28 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h

RECEIVE_BUFFER_SIZE#

#define RECEIVE_BUFFER_SIZE
Value:
180

Definition at line 30 of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h