# idenify\_packet\_type()

パケットデータのバイト列を入力として、パケットの種別を判定します。また既に生成済みの[`spTwePacket`](https://mwm5.twelite.info/master-2/references/parser/twefmt/twepacket)オブジェクトの種別を返します。戻り値は[E\_PKT](https://mwm5.twelite.info/master-2/references/parser/twefmt/twepacket/e_pkt)です。

```cpp
E_PKT identify_packet_type(uint8_t* p, uint8_t u8len)
E_PKT identify_packet_type(SmplBuf_Byte& sbuff)

E_PKT identify_packet_type(spTwePacket& sp)
```
