Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
Loading...
Searching...
No Matches
ldrom_hid.h File Reference
#include <stdint.h>
#include "ca821x_error.h"
#include "evbme_messages.h"
Include dependency graph for ldrom_hid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dfu_write_cmd_aligned
 Write command to write words of data - aligned for codespace and speed. More...
union  dfu_cmd_aligned
 Union of all DFU commands - version with dfu_write_cmd_aligned. More...
struct  SerialBuf
 Cascoda serialbuffer structure. More...

Macros

#define USBD_NOTZ_GET_EP_BUF_ADDR(ep)
#define USBD_NOTZ_SET_PAYLOAD_LEN(ep, size)
#define USBD_NOTZ_CONFIG_EP(ep, config)
#define USBD_NOTZ_SET_EP_BUF_ADDR(ep, offset)
#define USBD_NOTZ_GET_INT_FLAG()
#define USBD_NOTZ_CLR_INT_FLAG(flag)

Functions

 ca_static_assert (sizeof(struct dfu_write_cmd_aligned)==248)
 ca_static_assert (sizeof(struct SerialBuf)==sizeof(struct dfu_write_cmd_aligned)+4)
void HID_Init (void)
 USBD Endpoint Config.
void EP2_Handler (void)
void EP3_Handler (void)
void RxHandled (void)
void TxReady (void)

Variables

struct SerialBuf gRxBuffer
struct SerialBuf gTxBuffer

Macro Definition Documentation

◆ USBD_NOTZ_CLR_INT_FLAG

#define USBD_NOTZ_CLR_INT_FLAG ( flag)
Value:
(USBD->INTSTS = (flag))

◆ USBD_NOTZ_CONFIG_EP

#define USBD_NOTZ_CONFIG_EP ( ep,
config )
Value:
(*((__IO uint32_t *) ((uint32_t)&USBD->EP[0].CFG + (uint32_t)((ep) << 4))) = (config))

◆ USBD_NOTZ_GET_EP_BUF_ADDR

#define USBD_NOTZ_GET_EP_BUF_ADDR ( ep)
Value:
((uint32_t)*((__IO uint32_t *) ((uint32_t)&USBD->EP[0].BUFSEG + (uint32_t)((ep) << 4))))

◆ USBD_NOTZ_GET_INT_FLAG

#define USBD_NOTZ_GET_INT_FLAG ( )
Value:
((uint32_t)(USBD->INTSTS))

◆ USBD_NOTZ_SET_EP_BUF_ADDR

#define USBD_NOTZ_SET_EP_BUF_ADDR ( ep,
offset )
Value:
(*((__IO uint32_t *) ((uint32_t)&USBD->EP[0].BUFSEG + (uint32_t)((ep) << 4))) = (offset))

◆ USBD_NOTZ_SET_PAYLOAD_LEN

#define USBD_NOTZ_SET_PAYLOAD_LEN ( ep,
size )
Value:
(*((__IO uint32_t *) ((uint32_t)&USBD->EP[0].MXPLD + (uint32_t)((ep) << 4))) = (size))

Function Documentation

◆ ca_static_assert() [1/2]

ca_static_assert ( sizeof(struct dfu_write_cmd_aligned) = =248)

◆ ca_static_assert() [2/2]

ca_static_assert ( sizeof(struct SerialBuf) = =sizeof(struct dfu_write_cmd_aligned)+4)

◆ EP2_Handler()

void EP2_Handler ( void )

◆ EP3_Handler()

void EP3_Handler ( void )

◆ HID_Init()

void HID_Init ( void )

USBD Endpoint Config.

◆ RxHandled()

void RxHandled ( void )

◆ TxReady()

void TxReady ( void )

Variable Documentation

◆ gRxBuffer

struct SerialBuf gRxBuffer
extern

◆ gTxBuffer

struct SerialBuf gTxBuffer
extern