📄 cc1000_csma.h
字号:
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003,2004,2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)/* Project Mantis File: cc1000_csma.h Authors: Charles Gruenwald III & Jeff Rose Date: 05-13-04 *//** @file cc1000_csma.h * @brief Driver provides: use of cc1000 carrier sensing medium access control. * * Driver requires: AVR architecture with cc1000 connected via SPI bus. This driver * is mainly implemented on top of cc1000_defaults. * * Note: To activate this routing protocol, the appropriate line in main.c must * be uncommented along with commenting the other routing protocols. * @author Charles Gruenwald III, Jeff Rose * @date 05/13/2004 */#ifndef _CC1000_CSMA_H_#define _CC1000_CSMA_H_/* CC1000 ioctl requests *//* set transmit power, takes uint8_t argument */#define CC1000_TX_POWER 0#define CC1000_RSSI 1#define CC1000_FREQ 2/** @brief Init function. */void cc1000_csma_init();/** @brief get the number of crc errors */inline uint16_t cc1000_get_crc_errors();/** @brief get the number of memory errors */inline uint16_t cc1000_get_mem_errors();/** @brief get the number of sync errors */inline uint16_t cc1000_get_sync_errors();/** @brief get the number of size errors */inline uint16_t cc1000_get_size_errors();#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -