a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Resources:
 card.resource
  BeginCardAccess
  CardAccessSpeed
  CardChangeCount
  CardForceChange
  CardInterface
  CardMiscControl
  CardProgramVoltage
  CardResetCard
  CardResetRemove
  CopyTuple
  DeviceTuple
  EndCardAccess
  GetCardMap
  IfAmigaXIP
  OwnCard
  ReadCardStatus
  ReleaseCard
Include
GuruMeditation
Docs » Autodocs » card.resource » ReleaseCard

NAME

	ReleaseCard -- Release ownership of credit card

SYNOPSIS

	ReleaseCard( handle, flags )
a1 d0
void ReleaseCard( struct CardHandle *, ULONG );

FUNCTION

	This function releases ownership of the credit card in the
slot.
The access light (if any) is automatically turned off
(if it was turned on) when you release ownership of
a card you owned, and all credit-card control registers
are reset to their default state.
You must call this function if -
You own the credit-card, and want to release it so that
other devices on the notification list will have a chance
to examine the credit-card in the card slot.
You took a Card Removed interrupt while you owned the
credit-card. If so, you MUST call this function, else
no other task will be notified of newly inserted cards. On
some machines the credit-card interface hardware may also
be left disabled until you respond to the card removed interrupt
by calling this function.
You want to remove yourself from the notification list (see
optional flags below).

INPUTS

	handle - Same handle as that used when OwnCard() was called.
flags - Optional flags.
- CARDB_REMOVEHANDLE means you want remove your
CardHandle structure from the notification list
whether or not you currently own the credit-card
in the card slot. The node structure in your
CardHandle will be removed from the notification
list, and ownership will be released if you were
the owner of the card.

NOTES

	This function should only be called from a task.

SEE ALSO

OwnCard(), "resources/card.i", <resources/card.h>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Future Crew

ATX
FC
SPB
RSI

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se