Zniffer#
Modules#
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)
typedef struct _transport_t
Variables#
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)
void
void
comm_interface_init(void)
uint32_t
void
comm_interface_set_byte_timeout_ms(uint32_t t)
Macros#
#define
SOF '#'
#define
SODF '!'
#define
SODM 0x3
#define
SOWU 0x2
#define
CMD_FRAME 0x00
#define
DATA_FRAME 0x01
#define
BEAM_FRAME 0x02
#define
BEAM_START 0x04
#define
BEAM_STOP 0x05
#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.5ZeoF8fvV/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.5ZeoF8fvV/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.5ZeoF8fvV/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.5ZeoF8fvV/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.5ZeoF8fvV/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.5ZeoF8fvV/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/A | frame |
Definition at line
114
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/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/A | cmd | |
N/A | type | |
N/A | payload | |
N/A | len | |
N/A | cb |
Definition at line
119
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/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.5ZeoF8fvV/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.5ZeoF8fvV/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.5ZeoF8fvV/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/A | t |
Definition at line
123
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/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.5ZeoF8fvV/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h
Macro Definition Documentation#
SOF#
#define SOFValue:
'#'
Definition at line
18
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h
SODF#
#define SODFValue:
'!'
Definition at line
19
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h
SODM#
#define SODMValue:
0x3
Definition at line
20
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h
SOWU#
#define SOWUValue:
0x2
Definition at line
21
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h
CMD_FRAME#
#define CMD_FRAMEValue:
0x00
Definition at line
23
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h
DATA_FRAME#
#define DATA_FRAMEValue:
0x01
Definition at line
24
of file /mnt/raid/workspaces/ws.5ZeoF8fvV/overlay/gsdk/protocol/z-wave/Apps/zwave_ncp_zniffer/comm_interface.h