TLMoto / Nextion

Dependents:   Display

NexObject.h

Committer:
franciscodias
Date:
2020-05-04
Revision:
1:e4163fd9aa4c
Parent:
0:67bae57e0b73

File content as of revision 1:e4163fd9aa4c:

#ifndef __NEXOBJECT_H__
#define __NEXOBJECT_H__
#include "mbed.h"
#include "NexConfig.h"
#include "Utilities.h"

typedef void (*NexTouchEventCb)(void *ptr);

struct NexObject
{
    uint8_t __pid;      /* Page ID */
    uint8_t __cid;      /* Component ID */
    char __name[16]; /* An unique name */
    NexTouchEventCb __cb_push;
    void *__cbpush_ptr;
    NexTouchEventCb __cb_pop;
    void *__cbpop_ptr;
};

#endif