summaryrefslogtreecommitdiff
path: root/include/badge/ble.h
blob: b3a65dc9d7e569a7d44c81b8bb893e1122855c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <stdint.h>

namespace de::uvok::badge
{
    typedef struct
    {
        bool has_data;
        uint8_t new_template;
    } ble_poll_result_t;

    void ble_init(void);
    void ble_advertise(void);
    bool ble_is_advertising(void);
    ble_poll_result_t ble_poll(void);
    void ble_set_image(uint8_t image);
} // namespace de::uvok::badge