ADLINK Technology PCI-MPG24 Manuale Utente Pagina 65

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 160
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 64
Reference Manual 55
6 Reference Manual
6.1 Preview
GPIO Access
The GPIO provides a method to read board information, select
input channel, and control digital inputs/digital outputs.
Sample:
#define INSTANCE_DATA_OF_PROPERTY_PTR(x) (
(PKSPROPERTY ((x)) ) + 1 )
#define INSTANCE_DATA_OF_PROPERTY_SIZE(x) (
sizeof((x)) – sizeof (KSPROPERTY) )
void GPIOWrite(IBaseFilter* pFilter,DWORD
bit,DWORD value)
{
IKsPropertySet *pKs = NULL;
DWORD TypeSupport = 0;
KSPROPERTY_CUSTOMBT848_GPIO_S rc;
HRESULT hr;
ULONG ret=0;
if (pFilter->QueryInterface(IID_IKsPropertySet,
(void **)&pKs) == S_OK)
{
hr = pKs-
>QuerySupported(PROPSETID_CUSTOMBT848,KSPROPERTY
_CUSTOMBT848_GPIO,&TypeSupport);
if(TypeSupport & KSPROPERTY_SUPPORT_GET)
{
ZeroMemory(&rc,sizeof(rc));
rc.dwOperation=BT848_CUSTPROP_GPIO_SETGPDATABITS;
Vedere la pagina 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 159 160

Commenti su questo manuale

Nessun commento