dimanche 16 décembre 2018

Store the Function for later use

How to store the function name,parameter list of various classes for later use in c++.

#ifndef SPI_H_
#define SPI_H_

#include "msp430g2553.h"


class SPI {
public:
    typedef void (*foo)(void);
    static foo mycallback;

    static void transmitData(unsigned char data, foo callback);
    static void call();
};

Aucun commentaire:

Enregistrer un commentaire