The Physical Layer defines the electrical and mechanical aspects of interfacing to a physical medium for transmitting data, as well as setup, maintenance and disconnection of physical links. This layer includes the software driver for each communications device, plus the hardware itself—interface devices, modems and communications lines.