You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.8 KiB
82 lines
1.8 KiB
#ifndef PD_CHUNK_DEFINE_H
|
|
#define PD_CHUNK_DEFINE_H
|
|
#include "task_define.h"
|
|
#include "drv_pd_phy.h"
|
|
#pragma anon_unions
|
|
typedef union
|
|
{
|
|
uint8_t byte;
|
|
struct
|
|
{
|
|
uint8_t prl_chunked_packet_recived: 1;
|
|
uint8_t prl_chunked_rx_packet_recived: 1;
|
|
uint8_t prl_chunked_tx_packet_recived: 1;
|
|
uint8_t prl_chunked_packet_recived_from_pe: 1;
|
|
uint8_t prl_chunked_packet_send_succc: 1;
|
|
uint8_t prl_chunked_packet_send_fail: 1;
|
|
uint8_t prl_chunked_packet_send_discard: 1;
|
|
uint8_t reserved: 1;
|
|
};
|
|
} pd_prl_chunk_u;
|
|
|
|
typedef enum
|
|
{
|
|
RCH_Wait_For_Message_From_Protocol_Layer,
|
|
/* RCH_Pass_Up_Message, */
|
|
/* RCH_Processing_Extended_Message, */
|
|
RCH_Requesting_Chunk,
|
|
/* RCH_Waiting_Chunk, */
|
|
/* RCH_Report_Error, */
|
|
} pd_rch_state_e;
|
|
|
|
typedef enum
|
|
{
|
|
TCH_Wait_For_Message_Request_From_Policy_Engine,
|
|
/* TCH_Pass_Down_Message, */
|
|
/* TCH_Wait_For_Transmision_Complete, */
|
|
/* TCH_Message_Sent, */
|
|
/* TCH_Prepare_To_Send_Chunked_Message, */
|
|
/* TCH_Construct_Chunked_Message, */
|
|
TCH_Sending_Chunked_Message,
|
|
TCH_Wait_Chunk_Request,
|
|
/* TCH_Message_Received, */
|
|
/* TCH_Report_Error, */
|
|
} pd_tch_state_e;
|
|
|
|
typedef enum
|
|
{
|
|
RTR_Wait_for_Message_From_Protocol_Layer,
|
|
RTR_Rx_Chunks,
|
|
RTR_Ping,
|
|
RTR_Tx_Chunks,
|
|
} pd_rtr_state_e;
|
|
|
|
typedef enum
|
|
{
|
|
rch_entry_state,
|
|
rch_exit_state,
|
|
} rch_process_state_e;
|
|
|
|
typedef enum
|
|
{
|
|
tch_entry_state,
|
|
tch_exit_state,
|
|
} tch_process_state_e;
|
|
|
|
typedef enum
|
|
{
|
|
rtr_entry_state,
|
|
rtr_exit_state,
|
|
} rtr_process_state_e;
|
|
|
|
typedef struct
|
|
{
|
|
pd_rch_state_e rch_state;
|
|
rch_process_state_e rch_process_state;
|
|
pd_tch_state_e tch_state;
|
|
tch_process_state_e tch_process_state;
|
|
// pd_rtr_state_e rtr_state_e;
|
|
// rtr_process_state_e rtr_process_state;
|
|
} pd_chunk_state_s;
|
|
|
|
#endif /* PD_CHUNK_DEFINE_H */
|
|
|