Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

LUTs/LUTs.h

Committer:
lukeocarwright
Date:
2020-05-07
Revision:
11:6ae098535da9
Parent:
10:258a1eca02cc
Child:
14:9cfe0041cc4e

File content as of revision 11:6ae098535da9:

#ifndef LUTs_H
#define LUTs_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"


/** LUTs class
 * @author Luke Cartwright, University of Leeds
 * @brief generates LUTs
 * @date May 2020
*/
class LUTs
{
public:
    //constructor
    LUTs();
    //destructior
    ~LUTs();

    //variables



    //methods
    void initial_wavetables();
    void sin_wavetable();
    void tri_wavetable(int pulsewidth);
    void pulse_wavetable(int pulsewidth);

private:
//variables
    float rem;
    float sin_d;
    uint16_t sin_u;
    float dif;
    uint16_t dif_u;
    int i;
    float rise_t;
    uint16_t rise_tu;
    uint16_t fall_tu;
    float up_t;
    int up_tu;
    
};
#endif