add pin mux status check function