18 lines
978 B
C
18 lines
978 B
C
/*
|
|
* STM32F407-порт периферийного протокола УМП. Адаптирует аппаратный обмен и регистровое
|
|
* состояние к общему ump_protocol; таблица доступных регистров и конфигурация периферии
|
|
* относятся к проекту платы.
|
|
*/
|
|
|
|
#ifndef UMP_STM32F407_H
|
|
#define UMP_STM32F407_H
|
|
#include "../../include/ump_protocol.h"
|
|
/* Application owns framing, ID filtering, snapshot lock, and tx buffers. */
|
|
size_t ump_stm32f407_rtu(const ump_backend *backend, unsigned device,
|
|
const uint8_t *request, size_t length, uint8_t *reply, size_t capacity);
|
|
unsigned ump_stm32f407_can(const ump_backend *backend, const uint8_t *request,
|
|
size_t length, uint16_t *words, unsigned *token, unsigned *error);
|
|
unsigned ump_stm32f407_fragment(const uint16_t *words, unsigned count,
|
|
unsigned index, unsigned token, unsigned error, uint8_t reply[8]);
|
|
#endif
|