Simplify internal interface.
New func: set_pinattr/2.