libcacard: move atr setting from macro to function