Design of an Embedded Flash IP for USB Type-C Applications