~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: d9704d2790d366147edaab5fb5ace43ebaa6e3f5 CTU-FEE-B0B35APO-Semestral-project/lib-pheripherals/include/mzapo_pheripherals.h -rw-r--r-- 982 bytes
d9704d27 — František Boháček feat: add keyboard and rotation encoders constants 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __MZAPO_PHERIPHERALS_H__
#define __MZAPO_PHERIPHERALS_H__

#include "mzapo_led_strip.h"
#include "mzapo_parlcd.h"
#include "mzapo_phys.h"
#include "mzapo_rgb_led.h"
#include "display_utils.h"

#ifdef __cplusplus
extern "C" {
#endif
  typedef struct {
    display_t *display;
    mzapo_rgb_led_t *rgb_leds;
    mzapo_ledstrip_t *ledstrip;
    void **knobs;
  } mzapo_pheripherals_t;

  mzapo_ledstrip_t mzapo_create_ledstrip();
  mzapo_rgb_led_t mzapo_create_rgb_led();
  display_t mzapo_create_display();

  void *mzapo_get_knobs_address();

  mzapo_pheripherals_t mzapo_pheripherals_create(mzapo_ledstrip_t *ledstrip, mzapo_rgb_led_t *rgb_led, display_t *display, void **mzapo_knobs_address);
  bool mzapo_check_pheripherals(mzapo_ledstrip_t *ledstrip,
                                mzapo_rgb_led_t *rgb_led, display_t *display,
                                void **mzapo_knobs_address);

#ifdef __cplusplus
} /* extern "C"*/
#endif

#endif // __MZAPO_PHERIPHERALS_H__
Do not follow this link