Se api

Just for preview. Please don't merge it.
Yes. your guess is correct. GP card standard defines 19 logical channels. Actually I just want this iteration runs 19 times; we may also write it as (i = 0; i < MAX_LOGICAL_CHANNEL - 1; i++). Thus, you can see next open_logical_channel() should fail since no logical channel available to open.