  The envelope-function method with generalized boundary conditions is applied
to the description of localized and resonant interface states. A complete set
of phenomenological conditions which restrict the form of connection rules for
envelope functions is derived using the Hermiticity and symmetry requirements.
Empirical coefficients in the connection rules play role of material parameters
which characterize an internal structure of every particular heterointerface.
As an illustration we present the derivation of the most general connection
rules for the one-band effective mass and 4-band Kane models. The conditions
for the existence of Tamm-like localized interface states are established. It
is shown that a nontrivial form of the connection rules can also result in the
formation of resonant states. The most transparent manifestation of such states
is the resonant tunneling through a single-barrier heterostructure.
