summaryrefslogtreecommitdiff
path: root/include/badge/ble.h
blob: 231b103c0c35a29ba26d9db7d7019e30f8801604 (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_active(void);
    ble_poll_result_t ble_poll(void);
    void ble_set_image(uint8_t image);
} // namespace de::uvok::badge