1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef ZEPHYR_INCLUDE_MGMT_SMP_SHELL_H_
- #define ZEPHYR_INCLUDE_MGMT_SMP_SHELL_H_
- #include <zephyr/types.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define SMP_SHELL_RX_BUF_SIZE 127
- struct smp_shell_data {
- struct net_buf_pool *buf_pool;
- struct k_fifo buf_ready;
- struct net_buf *buf;
- atomic_t esc_state;
- };
- size_t smp_shell_rx_bytes(struct smp_shell_data *data, const uint8_t *bytes,
- size_t size);
- void smp_shell_process(struct smp_shell_data *data);
- int smp_shell_init(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|