ObsoNET searching routine. /!\ Must not be call from page 1. /!\ Must not be call before any other function from this module.
Obtains the ObsoNET slot (or 0xFF is not found).
Slot number.
Check if ObsoNET card has a BIOS.
TRUE if the card has a BIOS.
Initializes the ObsoNET card.
Obtains the BIOS version.
Pointer to the 3 bytes version number (major, minor, revision).
Obtains the ObsoNET physical address.
Pointer to the 6 bytes MAC address.
Obtains the ObsoNET physical address. See ONET_GetPhysicalAddr
Pointer to the 6 bytes MAC address.
Obtains the network connection status.
TRUE if the network is connected.
| u8 ONET_Activation( |
| ) |
Activates or deactivates ObsoNET.
| flag u8 | Activation flag (ONET_ACTIVATE_GET, ONET_ACTIVATE_ON or ONET_ACTIVATE_OFF). |
Current activation state if flag is ONET_ACTIVATE_GET.
Activates ObsoNET.
Deactivates ObsoNET.
Check Activates or deactivates ObsoNET.
TRUE if the card is activated.
| u8 ONET_ReceptConfig( |
| ) |
Configuration of the reception parameters.
| flag u8 | Reception flag (ONET_RECEPT_SMALL, ONET_RECEPT_BROADCAST, ONET_RECEPT_MULTICAST, ONET_RECEPT_ALL or ONET_RECEPT_GET). |
Current configuration if flag is ONET_RECEPT_GET.
| inline void ONET_SetReceptConfig( |
| ) |
Set Configuration of the reception parameters.
| flag u8 | Reception flag (ONET_RECEPT_SMALL, ONET_RECEPT_BROADCAST, ONET_RECEPT_MULTICAST or ONET_RECEPT_ALL). |
Get Configuration of the reception parameters.
Current configuration.
| void ONET_SetMulticastMask( |
| ) |
Set Configuration of the multicast mask.
| addr u8* | Address to write the mask to. |
| void ONET_GetMulticastMask( |
| ) |
Get Configuration of the multicast mask.
| addr u8* | Address to read the mask from. |
| bool ONET_GetPacketInfo( |
| ) |
Obtains information about the oldest received packet.
| info ONET_PacketInfo* | Pointer to the packet information structure. |
TRUE if a packet is available.
| bool ONET_GetPacket( |
| ) |
Obtains the oldest captured incoming packet.
| addr u8* | Address where to put the packet (0 to discard it). |
TRUE if a packet has been obtained (or discarded).
Discard the oldest captured incoming packet.
| u8 ONET_SendPacketSync( |
| ) |
Sends a packet to the network (Synchronous execution).
| addr const u8* | Address of the packet to send. |
| size u16 | Size of the packet. |
Status of the transmission.
| u8 ONET_SendPacketAsync( |
| ) |
Sends a packet to the network (Asynchronous execution).
| addr const u8* | Address of the packet to send. |
| size u16 | Size of the packet. |
Status of the transmission.
Obtains the status of the packet transmission.
Status of the transmission.