Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
hal_target.h File Reference

HAL target macros and typedefs. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "hal_delay.h"
Include dependency graph for hal_target.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HAL_MODULE_ERROR   (hal_base_addr_t)(0xFFFFFFFF)
 
#define HAL_CHANNEL_ERROR   (hal_channel_t)(0xFFFFFFFF)
 
#define HAL_PIN_NC   (hal_pin_name_t)(0xFFFFFFFF)
 
#define HAL_PORT_NC   (hal_port_name_t)(0xFFFFFFFF)
 

Typedefs

typedef uintptr_t handle_t
 
typedef uint32_t hal_ll_gpio_mask_t
 
typedef uint32_t hal_ll_pin_name_t
 
typedef uint8_t hal_ll_port_name_t
 
typedef uint32_t hal_ll_port_size_t
 
typedef uint32_t hal_ll_base_addr_t
 
typedef uint8_t hal_ll_channel_t
 
typedef hal_ll_base_addr_t hal_base_addr_t
 Base address, which is size dependant on the architecture. More...
 
typedef hal_ll_channel_t hal_channel_t
 Channel type, which is size dependant on the architecture. More...
 
typedef hal_ll_pin_name_t hal_pin_name_t
 Pin type, which is size dependant on the architecture. More...
 
typedef hal_ll_port_name_t hal_port_name_t
 Port type, which is size dependant on the architecture. More...
 
typedef hal_ll_port_size_t hal_port_size_t
 Port width, which is size dependant on the architecture. More...
 
typedef int32_t err_t
 General error type. More...
 

Enumerations

enum  acquire_t { ACQUIRE_SUCCESS = 0 , ACQUIRE_INIT , ACQUIRE_FAIL = (-1) }
 

Detailed Description

HAL target macros and typedefs.

Macro Definition Documentation

◆ HAL_CHANNEL_ERROR

#define HAL_CHANNEL_ERROR   (hal_channel_t)(0xFFFFFFFF)

◆ HAL_MODULE_ERROR

#define HAL_MODULE_ERROR   (hal_base_addr_t)(0xFFFFFFFF)

◆ HAL_PIN_NC

#define HAL_PIN_NC   (hal_pin_name_t)(0xFFFFFFFF)

◆ HAL_PORT_NC

#define HAL_PORT_NC   (hal_port_name_t)(0xFFFFFFFF)

Typedef Documentation

◆ err_t

typedef int32_t err_t

General error type.

◆ hal_base_addr_t

Base address, which is size dependant on the architecture.

◆ hal_channel_t

Channel type, which is size dependant on the architecture.

◆ hal_ll_base_addr_t

typedef uint32_t hal_ll_base_addr_t

◆ hal_ll_channel_t

typedef uint8_t hal_ll_channel_t

◆ hal_ll_gpio_mask_t

typedef uint32_t hal_ll_gpio_mask_t

◆ hal_ll_pin_name_t

typedef uint32_t hal_ll_pin_name_t

◆ hal_ll_port_name_t

typedef uint8_t hal_ll_port_name_t

◆ hal_ll_port_size_t

typedef uint32_t hal_ll_port_size_t

◆ hal_pin_name_t

Pin type, which is size dependant on the architecture.

◆ hal_port_name_t

Port type, which is size dependant on the architecture.

◆ hal_port_size_t

Port width, which is size dependant on the architecture.

◆ handle_t

typedef uintptr_t handle_t

Enumeration Type Documentation

◆ acquire_t

enum acquire_t

Predefined enum values for acquiring adequate object handle.

Enumerator
ACQUIRE_SUCCESS 

Acquire successful.

ACQUIRE_INIT 

Init required.

ACQUIRE_FAIL 

Acquire failed.