Programmable magnetic sensor for C slots