It is considered generic because it applies to all makes and models of vehicles, although specific repair steps may be different depending on your car model.
Possible Causes :
Find out what kind of system you have and verify that voltage to the fuel level sensor is present at the fuel pump wiring harness. Look at the plug wires to make sure they are not burnt or laying on the exhaust. Pack the connector cavity with dielectric silicone compound (same stuff they use for light bulb sockets and spark plug wires) and reassemble.
Diagnostic trouble code C0340 is not difficult to diagnose and repair. Thus, it always pays to have a qualified technician to look after your vehicle should this error code arise.
Diagnosing this code requires the engine to be in good running shape, without unmetered air entering the engine. If other codes that relates to misfiring condition, lean running or air entering the engine is present, then you must first fix those error codes before C0340.
Fortunately, C0340 is a fairly common OBD code, meaning that it applies to all makes and models of vehicles made after 1996.