Contiki 2.5
Macros | Functions
halbb.c File Reference

This file contains low-level radio driver code. More...

#include "contiki-conf.h"
#include <stdlib.h>
#include "hal.h"
#include "at86rf230_registermap.h"
#include "contiki-mulle.h"

Go to the source code of this file.

Macros

#define HAL_SPI_TRANSFER_OPEN()
 This function is called when a rx_start interrupt is signaled. More...
 
#define HAL_RF230_ISR()   M16C_INTERRUPT(M16C_INT1)
 This function initializes the Hardware Abstraction Layer.
 

Functions

void hal_init (void)
 This function initializes the Hardware Abstraction Layer.
 
uint8_t hal_register_read (uint8_t address)
 This function reads data from one of the radio transceiver's registers. More...
 
void hal_register_write (uint8_t address, uint8_t value)
 This function writes a new value to one of the radio transceiver's registers. More...
 
uint8_t hal_subregister_read (uint8_t address, uint8_t mask, uint8_t position)
 This function reads the value of a specific subregister. More...
 
void hal_subregister_write (uint8_t address, uint8_t mask, uint8_t position, uint8_t value)
 This function writes a new value to one of the radio transceiver's subregisters. More...
 
void hal_frame_read (hal_rx_frame_t *rx_frame)
 This function will upload a frame from the radio transceiver's frame buffer. More...
 
void hal_frame_write (uint8_t *write_buffer, uint8_t length)
 This function will download a frame to the radio transceiver's frame buffer. More...
 
void RADIO_VECT (void)
 ISR for the radio IRQ line, triggered by the input capture. More...
 
void TIMER1_OVF_vect (void)
 Timer Overflow ISR This is the interrupt service routine for timer1 overflow.
 

Detailed Description

This file contains low-level radio driver code.

This version is optimized for use with the "barebones" RF230bb driver, which communicates directly with the contiki core MAC layer. It is optimized for speed at the expense of generality.

Definition in file halbb.c.