Pico Core
Loading...
Searching...
No Matches
core_registers.h File Reference
#include <stdint.h>
#include <reg_types.h>
#include <core_reg_bits.h>
#include <cstring>
Include dependency graph for core_registers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RegValues
 
struct  RegSpecs
 
struct  Registers
 

Macros

#define APP_REG_START_ADDRESS   (32)
 
#define DUMP_OFFSET   (3)
 
#define MUTE_RPL_OFFSET   (4)
 
#define VISUAL_EN_OFFSET   (5)
 
#define OPLEDEN_OFFSET   (6)
 
#define ALIVE_EN_OFFSET   (7)
 
#define RST_DEV_OFFSET   (0)
 
#define RST_DFU_OFFSET   (5)
 
#define BOOT_DEF_OFFSET   (6)
 
#define BOOT_EE_OFFSET   (7)
 

Enumerations

enum  op_mode_t : uint8_t { STANDBY = 0 , ACTIVE = 1 , RESERVED = 2 , SPEED = 3 }
 enum for easier interpretation of the OP_MODE bitfield in the R_OPERATION_CTRL register. More...
 
enum  RegName : uint8_t {
  WHO_AM_I = 0 , HW_VERSION_H = 1 , HW_VERSION_L = 2 , ASSEMBLY_VERSION = 3 ,
  HARP_VERSION_H = 4 , HARP_VERSION_L = 5 , FW_VERSION_H = 6 , FW_VERSION_L = 7 ,
  TIMESTAMP_SECOND = 8 , TIMESTAMP_MICRO = 9 , OPERATION_CTRL = 10 , RESET_DEF = 11 ,
  DEVICE_NAME = 12 , SERIAL_NUMBER = 13 , CLOCK_CONFIG = 14 , TIMESTAMP_OFFSET = 15 ,
  UUID = 16 , TAG = 17
}
 enum where the name is the name of the register and the value is the address according to the harp protocol spec. More...
 

Variables

static const uint8_t CORE_REG_COUNT = 18
 

Macro Definition Documentation

◆ ALIVE_EN_OFFSET

#define ALIVE_EN_OFFSET   (7)

◆ APP_REG_START_ADDRESS

#define APP_REG_START_ADDRESS   (32)

◆ BOOT_DEF_OFFSET

#define BOOT_DEF_OFFSET   (6)

◆ BOOT_EE_OFFSET

#define BOOT_EE_OFFSET   (7)

◆ DUMP_OFFSET

#define DUMP_OFFSET   (3)

◆ MUTE_RPL_OFFSET

#define MUTE_RPL_OFFSET   (4)

◆ OPLEDEN_OFFSET

#define OPLEDEN_OFFSET   (6)

◆ RST_DEV_OFFSET

#define RST_DEV_OFFSET   (0)

◆ RST_DFU_OFFSET

#define RST_DFU_OFFSET   (5)

◆ VISUAL_EN_OFFSET

#define VISUAL_EN_OFFSET   (5)

Enumeration Type Documentation

◆ op_mode_t

enum op_mode_t : uint8_t

enum for easier interpretation of the OP_MODE bitfield in the R_OPERATION_CTRL register.

Enumerator
STANDBY 
ACTIVE 
RESERVED 
SPEED 

◆ RegName

enum RegName : uint8_t

enum where the name is the name of the register and the value is the address according to the harp protocol spec.

Enumerator
WHO_AM_I 
HW_VERSION_H 
HW_VERSION_L 
ASSEMBLY_VERSION 
HARP_VERSION_H 
HARP_VERSION_L 
FW_VERSION_H 
FW_VERSION_L 
TIMESTAMP_SECOND 
TIMESTAMP_MICRO 
OPERATION_CTRL 
RESET_DEF 
DEVICE_NAME 
SERIAL_NUMBER 
CLOCK_CONFIG 
TIMESTAMP_OFFSET 
UUID 
TAG 

Variable Documentation

◆ CORE_REG_COUNT

const uint8_t CORE_REG_COUNT = 18
static