Other Parts Discussed in Thread: TPS23881
Hi Sir,
How do we map the PoE port to the Ethernet port at the beginning?
I have 4 ports that must be powered to bt, so the initial setting should be the following:
tps_SetDevice4PPowerAllocation(tps2388x_i2cAddList[i],_4P_90W,_4P_90W)
If I connect Ethernet port1 to PD now, take the value according to the sample code:
tps_GetDeviceAllInterruptEvents (tps2388x_i2cAddList[devNum],
> TPS_ON, &powerEnablePortEvents, &powerGoodPortEvents,
> &detectionPortEvents,
>
> &classificationPortEvents, &icutPortEvents, &disconnectPortEvents,
> &inrushPortEvents,
> &ilimPortEvents, &supplyEvents);
> if(intStatus.CLASC_Classification_Cycle)
> {
> uint8_t i;
> uint8_t target;
>
> target = classificationPortEvents;
>
> for (i = TPS238X_PORT_1; i <= TPS238X_PORT_4; i++)
> {
> if (target & 0x1)
> {
> }
>
> }
> }
I will find that sometimes TPS238X_PORT_1 or TPS238X_PORT_2 have values, and sometimes TPS238X_PORT_1 and TPS238X_PORT_2 have values at the same time.
I want to know if it needs additional settings, how to identify which port it is currently connected to?
look forward to your reply.