17 lines
353 B
C
17 lines
353 B
C
#ifndef HIJACK_TX_H
|
|
#define HIJACK_TX_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/* allocate DMA-capable frame buffer */
|
|
void hijack_init(void);
|
|
|
|
/*
|
|
* Transmit frame via slot 0 DMA hijack.
|
|
* Fires a blob TX, intercepts the DMA descriptor, swaps in our buffer.
|
|
* Returns 0 on success, -1 on miss/timeout.
|
|
*/
|
|
int hijack_send(const uint8_t *frame, uint16_t len);
|
|
|
|
#endif
|