1 /* 2 * Copyright (c) 2015 Travis Geiselbrecht 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 9 #pragma once 10 11 #include <sys/types.h> 12 #include <stdint.h> 13 14 /* dcc */ 15 typedef void (*dcc_rx_callback_t)(uint32_t val); 16 17 status_t arm_dcc_enable(dcc_rx_callback_t rx_callback); 18 19 bool arm_dcc_read_available(void); 20 ssize_t arm_dcc_read(uint32_t *buf, size_t len, lk_time_t timeout); 21 ssize_t arm_dcc_write(const uint32_t *buf, size_t len, lk_time_t timeout); 22 23