Contiki 2.6

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.

Defines

#define HAL_SPI_TRANSFER_OPEN()
 This function is called when a rx_start interrupt is signaled.
#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 reset the interrupt flags and interrupt event handlers (Callbacks) to their default value.
void hal_register_write (uint8_t address, uint8_t value)
 This function writes a new value to one of the radio transceiver's registers.
uint8_t hal_subregister_read (uint8_t address, uint8_t mask, uint8_t position)
 This function reads the value of a specific subregister.
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.
void hal_frame_read (hal_rx_frame_t *rx_frame)
 Transfer a frame from the radio transceiver to a RAM buffer.
void hal_frame_write (uint8_t *write_buffer, uint8_t length)
 This function will download a frame to the radio transceiver's frame buffer.
void RADIO_VECT (void)
 Read SRAM.
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.