Host library for controlling a WiConnect enabled Wi-Fi module.

Dependents:   wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more

types/PinIrqHandler.h

Committer:
dan_ackme
Date:
2014-08-11
Revision:
4:c0966143aa22
Parent:
1:6ec9998427ad
Child:
11:ea484e1b7fc4

File content as of revision 4:c0966143aa22:

/*
 * Copyright 2014, ACKme Networks
 * All Rights Reserved.
 *
 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of ACKme Networks;
 * the contents of this file may not be disclosed to third parties, copied
 * or duplicated in any form, in whole or in part, without the prior
 * written permission of ACKme Networks.
 */

#pragma once




namespace wiconnect
{


class SocketIrqHandlerMap;

class PinIrqHandler WICONNECT_EXTERNAL_INTERRUPT_GPIO_BASE_CLASS
{
public:
    PinIrqHandler(Pin irqPin, const Callback &callback);
    virtual ~PinIrqHandler();

    void irqHandler();

protected:
    PinName irqPin;
    Callback callback;

    friend class SocketIrqHandlerMap;
};


typedef uint8_t PinIrqHandlerBuffer[sizeof(PinIrqHandler)];

}